[Rcpp-devel] devtools load_all() and modules
Chris DuBois
chris.dubois at gmail.com
Tue Mar 20 08:10:21 CET 2012
Hi all,
I'm trying out Hadley's devtools package. I'm having trouble using
load_all() on a package which uses Rcpp modules. From the readme,
this function "simulates installing and reloading your package, by
loading R code in R/, compiled shared objects in src/and data files in
data/. During development you usually want to access all functions so
load_all ignores the package NAMESPACE. It works efficiently by only
reloading files that have changed."
When I use it for my package, I get:
Error in loadRcppModules() :
loadRcppModules can only be used within a .onLoad function
Is there a way to load Rcpp modules from outside an .onLoad function?
I reported the issue here
(https://github.com/hadley/devtools/issues/61), but Hadley said I
should ask this group.
Thanks,
Chris
More information about the Rcpp-devel
mailing list