Re: [Rcpp-devel] Rcpp Modules - Failed to initialize module pointer

2011-04-09 Thread schattenpflanze
Is there a way to load/initialize the module in such a way that > library(testmod) > yada immediately yields the full description above? Aha, it seems that setting the (yet undocumented) option 'mustStart' to 'TRUE' in the Module command inside .onLoad() does the trick :-). Best regards, Pete

Re: [Rcpp-devel] Rcpp Modules - Failed to initialize module pointer

2011-04-09 Thread schattenpflanze
OK, I think I got it. After restarting with a clean workspace, the message changed to > yada Uninitialized module named "yada" from package "testmod", which is probably due to some kind of lazy loading. I can then directly call > yada$foo(2,3) [1] 6 > yada Rcpp module 'yada' 6 functions: