Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork219
Update Module.h#737
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Update Module.h#737
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Fixed compilation error in LOAD_RCCP_MODULE
eddelbuettel commentedAug 4, 2017
Nice. Can we possibly complement it with a test case? Do you have a usage example? |
assassin5615 commentedAug 4, 2017
actually, I am also wondering how this macro is intended to be used. currently, I am only using this macro as a reference for how to load a Module. I am working on something that runs R inside c++, to use this Macro directly, it needs to be changed to something like LOAD_RCPP_MODULE(NAME, SEXP) ..... SEXP=Rf_eval(...), then I can write following code anyone knows why this macro was added in the first place? |
eddelbuettel commentedAug 4, 2017
How Modules get loaded changed once (basically from the R side). This macro may or may not predate that change, I am not sure at the moment. I always trigger the load from the R side. |
eddelbuettel commentedAug 4, 2017
What name+email should I use for you in the ChangeLog? |
assassin5615 commentedAug 5, 2017
you can use Lei Yuleiyu_1981@qq.com. I am working on something that needs to load module from the c++ side. I have to assign the value returned by Rf_eval in the macro to something like R['my_own_module'] to use it. if it can be used directly(no need to assign the return value to something), the macro is useful when it comes to loading module in c++. |
Uh oh!
There was an error while loading.Please reload this page.
Fixed compilation error in LOAD_RCPP_MODULE