Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with load_all() and loadRcppModules() #61

Closed
doobwa opened this issue Feb 9, 2012 · 2 comments
Closed

Problem with load_all() and loadRcppModules() #61

doobwa opened this issue Feb 9, 2012 · 2 comments

Comments

@doobwa
Copy link

doobwa commented Feb 9, 2012

Hi,

I'm having trouble using load_all() on a package that uses Rcpp modules. I load my Rcpp modules using the loadRcppModules() function.

Note that it can only be used from within the .onLoad function, but I get an error with load_code() tries to execute env$.onLoad():
"loadRcppModules can only be used within a .onLoad function"

I'm not sure if it makes more sense to instead ask Rcpp to modify these sanity checks. On the other hand, perhaps I'm doing something incorrectly.

Thanks,
Chris

@hadley
Copy link
Member

hadley commented Feb 10, 2012

I think you'll need to ask Dirk and Romain what the preferred way to do this during development is.

@doobwa
Copy link
Author

doobwa commented Feb 13, 2012

Will do. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants