Cool!<div><br></div><div> I was going to ask this exact question (&quot;WTF WHERE IS MY MODULE$FUNC()?!?!?!!1&quot;) and now the magical mailing list has come to the rescue, unbidden.  Thank you both,<div><br></div><div>--tim</div>

<div><br><br><div class="gmail_quote">On Fri, Feb 18, 2011 at 7:10 AM, Dirk Eddelbuettel <span dir="ltr">&lt;<a href="mailto:edd@debian.org">edd@debian.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
Andre,<br>
<br>
(Now just on rcpp-devel)<br>
<br>
I had another quick look at this yesterday and noticed<br>
<div class="im"><br>
On 17 February 2011 at 13:14, Dirk Eddelbuettel wrote:<br>
| On 17 February 2011 at 10:29, Andre Zege wrote:<br>
</div><div class="im">| | I then run Rcpp.package.skeleton(&quot;mypackage&quot;), put fun.cpp in mypackage/src and<br>
| | did<br>
<br>
</div>That is not enough. You have to actually get the symbols of your Module<br>
loaded at package load, typically via function .onLoad() in R/zzz.R -- see<br>
the Section 3 of the Rcpp-modules vignette entitled &#39;Using modules in other<br>
packages&#39;. It lists the populate() helper function, you can also it by hand<br>
as the Rcpp.package.skeleton() generated code does:<br>
<br>
.onLoad &lt;- function(pkgname, libname){<br>
        # load the module and store it in our namespace<br>
        unlockBinding( &quot;yada&quot; , .NAMESPACE )<br>
        assign( &quot;yada&quot;,  Module( &quot;yada&quot; ), .NAMESPACE )<br>
        lockBinding( &quot;yada&quot;, .NAMESPACE )<br>
}<br>
<br>
You&#39;d have to do the same for your test module.<br>
<div><div></div><div class="h5"><br>
Dirk<br>
<br>
--<br>
Dirk Eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><font face="sans-serif" size="1"><span style="line-height:21px"><span style="font-family:arial;line-height:normal"><h4><span style="font-weight:normal"><font face="arial, helvetica, sans-serif">If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.</font></span></h4>

<div><span style="font-weight:normal"><font face="arial, helvetica, sans-serif"><a href="http://www-groups.dcs.st-and.ac.uk/~history/Biographies/Von_Neumann.html" target="_blank">John von Neumann</a></font></span></div></span></span></font><br>


</div></div>