To be more concrete, I define a module in foo.cpp and do something like
this:

foo = Module("MyClass", PACKAGE="MyPack")
foo$myfunc()

Where myfunc() is defined using function() in the RCPP_MODULE macro. I
can also extract the underlying reference and work with that as well.

This works without the importClassFrom() directive.

On Wed, Dec 8, 2010 at 1:55 PM, Dominick Samperi <[email protected]>wrote:

> I have a question about the modules vignette.
>
> At the end it says client packages must importClassesFrom(...),
> and there are comments about using .onLoad() as well.
>
> But before reading this I already implemented the use of
> modules in another (client) package without using these
> constructions. They do not seem to be required?
>
> Can you elaborate on exactly when these constructions
> are needed?
>
> Thanks,
> Dominick
>
>
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to