edd@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@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@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 | e...@debian.org | http://dirk.eddelbuettel.com  
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to