[Rcpp-devel] unable to open the base package (Dirk Eddelbuettel)

Dirk Eddelbuettel edd at debian.org
Fri Oct 5 21:22:14 CEST 2012

On 5 October 2012 at 13:09, Peter deVoil wrote:
| I'm not sure whether it's appropriate, but with Rtools 2.15 and R 2.15.1 
| under windows, I had to kick off my package with
| ...
|       R = new RInside(argc, argv, true);
|       R->parseEval("library(\"methods\")");
|       (*R)["xyz"] = LOAD_RCPP_MODULE(xyz) ;
| ...

Could well be. I haven't played with Rcpp Modules on Windows -- modules do
need the methods package.  But we don't load the methods package because,
well, littler doesn't, and this code inherited from littler.

We could change that.  [ Goes checking -- we no longer seem to do that. ]
| Didnt have time to investigate further, sorry

A complete example would help. I could test on Linux and then on Windows.

Based on a quick and casual look, methods is now loaded. I think.

All very odd as you also force loading of Rcpp which would bring it in too:

$ r -e 'library(Rcpp); print(search())'
[1] ".GlobalEnv"      "package:Rcpp"    "package:methods" "Autoloads"      
[5] "package:base"   


Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com  

More information about the Rcpp-devel mailing list