To be more concrete, I define a module in foo.cpp and do something like this:<br><br>foo = Module(&quot;MyClass&quot;, PACKAGE=&quot;MyPack&quot;)<br>foo$myfunc()<br><br>Where myfunc() is defined using function() in the RCPP_MODULE macro. I<br>
can also extract the underlying reference and work with that as well.<br><br>This works without the importClassFrom() directive.<br><br><div class="gmail_quote">On Wed, Dec 8, 2010 at 1:55 PM, Dominick Samperi <span dir="ltr">&lt;<a href="mailto:djsamperi@gmail.com">djsamperi@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I have a question about the modules vignette.<br><br>At the end it says client packages must importClassesFrom(...),<br>
and there are comments about using .onLoad() as well.<br><br>But before reading this I already implemented the use of<br>
modules in another (client) package without using these<br>constructions. They do not seem to be required?<br><br>Can you elaborate on exactly when these constructions<br>are needed?<br><br>Thanks,<br><font color="#888888">Dominick<br>
<br>
</font></blockquote></div><br>