Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Update Module.h #737
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?
you can use Lei Yu email@example.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++.