Tama Ma
2010-12-04 10:25:03 UTC
Dear Rcpp developers,
I use gcc compiler and manage to compile my Rcpp-wrapped C++ code to /my/project/dir/lib/mod.so .
Now, I want to call it inside R. Is there a way to do something like:
export R_LIBRARY_PATH= $R_LIBRARY_PATH:/my/project/dir/lib
Is there a fast solution, or may I help a bit?
Thank you very much.
Best regards,
Tama Ma
I use gcc compiler and manage to compile my Rcpp-wrapped C++ code to /my/project/dir/lib/mod.so .
Now, I want to call it inside R. Is there a way to do something like:
export R_LIBRARY_PATH= $R_LIBRARY_PATH:/my/project/dir/lib
require(Rcpp)
mod <- Module("mod")
Meanwhile, I tried googling around, and looking into the src code, but I haven't got an idea yet.mod <- Module("mod")
Is there a fast solution, or may I help a bit?
Thank you very much.
Best regards,
Tama Ma