Skip to content
Prev 9035 / 10988 Next

[Rcpp-devel] Access package installed into user library

Ok - (slight embarrassment to follow) I looked at the Environment constructor and found that it basically just called as.environment, which led my to try this out in R. This also failed, but for the reason that the requested package was only loaded, not attached (It?s part of the Import field of my package). calling library() to attach the package solved the issue?

The obvious follow up question is: Is there no way to use R functions from Rcpp if they are not part of the users search path (but part of the package namespace). I generally tend to avoid putting packages in Depends in order to not pollute the users search path.

Thomas