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

Dirk Eddelbuettel edd at debian.org
Fri Oct 5 21:38:31 CEST 2012




edd at max:~/svn/rinside/pkg/inst/examples/standard$ cat rinside_test2.cpp
// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
//
// Show the search path to check if package methods is loaded
//
// Copyright (C) 2012  Dirk Eddelbuettel and GPL'ed 

#include <RInside.h>                    // for the embedded R via RInside

int main(int argc, char *argv[]) {

    RInside R(argc, argv);              // create an embedded R instance 
    
    std::string cmd = "print(search())";
    R.parseEval(cmd); 		        // eval the init string, ignoring any returns

    exit(0);
}

edd at max:~/svn/rinside/pkg/inst/examples/standard$ ./rinside_test2
[1] ".GlobalEnv"        "package:stats"     "package:graphics"  
[4] "package:grDevices" "package:utils"     "package:datasets"  
[7] "package:methods"   "Autoloads"         "package:base"     
edd at max:~/svn/rinside/pkg/inst/examples/standard$ 


Can you try the example above? Just drop it in as a file rinside_test2.cpp
and say 'make -f Makefile.win rinside_test2'.

Dirk

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


More information about the Rcpp-devel mailing list