Thanks.  I figured it was a simple problem. <div><br></div><div>Now I have a working toy package that successfully uses both Rcpp Modules and CUDA :)</div><div><br></div><div>-Andrew<br><div><br><div class="gmail_quote">On Thu, Nov 4, 2010 at 1:51 PM, Romain Francois <span dir="ltr">&lt;<a href="mailto:romain@r-enthusiasts.com">romain@r-enthusiasts.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Ok. Now it is much more easier to help.<br>
<br>
This works for me:<br>
<br>
&gt; require( anRpackage )<br>
Le chargement a nécessité le package : anRpackage<br>
Le chargement a nécessité le package : Rcpp<br>
&gt; yada &lt;- Module( &quot;yada&quot;, &quot;anRpackage&quot; )<br>
&gt; yada$hello()<br>
Erreur dans yada$hello() : boom<br>
<br>
The key is the second argument of Module.<br>
<br>
Romain<br>
<br>
Le 04/11/10 20:42, Andrew Redd a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
I run these:<br>
<br>
Rscript -e &quot;Rcpp::Rcpp.package.skeleton(module=T)&quot;<br>
R CMD build anRpackage<br>
R CMD INSTALL anRpackage_0.1.tar.gz<br>
R<br>
<br>
R&gt; library(anRpackage)<br>
R&gt; Module(&#39;yada&#39;)$hello()<br>
Error in Module(module, mustStart = TRUE) :<br>
   Failed to initialize module pointer: Error in<br>
FUN(&quot;_rcpp_module_boot_yada&quot;[[1L]], ...): no such symbol<br>
_rcpp_module_boot_yada in package .GlobalEnv<br>
<br>
Should this work?  It&#39;s not working in my code, so I figured I&#39;d try the<br>
example only to be dismayed that didn&#39;t work either.<br>
<br>
-Andrew<br>
<br>
<br>
<br>
<br>
On Thu, Nov 4, 2010 at 1:39 PM, Romain Francois<br></div><div><div></div><div class="h5">
&lt;<a href="mailto:romain@r-enthusiasts.com" target="_blank">romain@r-enthusiasts.com</a> &lt;mailto:<a href="mailto:romain@r-enthusiasts.com" target="_blank">romain@r-enthusiasts.com</a>&gt;&gt; wrote:<br>
<br>
    Hi,<br>
<br>
    How about sharing the code that triggers the error.<br>
<br>
    It is like your car is broken and you call your insurance to fix it,<br>
    but you don&#39;t tell them where you are.<br>
<br>
    Romain<br>
<br>
    Le 04/11/10 20:29, Andrew Redd a écrit :<br>
<br>
        I&#39;m getting what I assume is a basic error, but I&#39;m not sure<br>
        what I&#39;m<br>
        doing wrong.<br>
<br>
        Error in Module(module, mustStart = TRUE) :<br>
           Failed to initialize module pointer: Error in<br>
        FUN(&quot;_rcpp_module_boot_vecadd&quot;[[1L]], ...): no such symbol<br>
        _rcpp_module_boot_vecadd in package .GlobalEnv<br>
<br>
        is the error when trying to load the module.  What is going wrong?<br>
<br>
        Thanks,<br>
        -Andrew<br>
<br>
<br>
    --<br>
    Romain Francois<br>
    Professional R Enthusiast<br>
    +33(0) 6 28 91 30 30<br>
    <a href="http://romainfrancois.blog.free.fr" target="_blank">http://romainfrancois.blog.free.fr</a><br>
    |- <a href="http://bit.ly/czHPM7" target="_blank">http://bit.ly/czHPM7</a> : Rcpp Google tech talk on youtube<br>
    |- <a href="http://bit.ly/9P0eF9" target="_blank">http://bit.ly/9P0eF9</a> : Google slides<br>
    `- <a href="http://bit.ly/cVPjPe" target="_blank">http://bit.ly/cVPjPe</a> : Chicago R Meetup slides<br>
<br>
<br>
    _______________________________________________<br>
    Rcpp-devel mailing list<br>
    <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-project.org</a><br></div></div>
    &lt;mailto:<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-project.org</a>&gt;<div class="im"><br>
    <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
<br>
<br>
</div></blockquote>
<br><div><div></div><div class="h5">
<br>
-- <br>
Romain Francois<br>
Professional R Enthusiast<br>
+33(0) 6 28 91 30 30<br>
<a href="http://romainfrancois.blog.free.fr" target="_blank">http://romainfrancois.blog.free.fr</a><br>
|- <a href="http://bit.ly/czHPM7" target="_blank">http://bit.ly/czHPM7</a> : Rcpp Google tech talk on youtube<br>
|- <a href="http://bit.ly/9P0eF9" target="_blank">http://bit.ly/9P0eF9</a> : Google slides<br>
`- <a href="http://bit.ly/cVPjPe" target="_blank">http://bit.ly/cVPjPe</a> : Chicago R Meetup slides<br>
<br>
<br>
</div></div></blockquote></div><br></div></div>