*Dear All*
*
*
*I am able to compile the simple program given in the site
http://dirk.eddelbuettel.com/code/rinside.html, but when i execute it a
dialog appear saying "Fatal Error: unable to load base package".
Please
help.*
*
*
*With regards*
*
*
*Sudhabrata Majumder*
*
*
This is the source code
#include <RInside.h> // for the embedded R via RInside
int main(int argc, char *argv[])
{
RInside R(argc, argv); // create an embedded R instance
R["txt"] = "Hello, world!\n"; // assign a char*
(string) to 'txt'
R.parseEvalQ("cat(txt)"); // eval the init string,
ignoring any
returns
exit(0);
}
This is the compilation command
g++ -Ic:/Progra~1/R/R-2.13.1/include
-Ic:/Progra~1/R/R-2.13.1/library/Rcpp/include
-Ic:/Progra~1/R/R-2.13.1/library/RInside/include -O3 -pipe -g -s em00.cpp
-Lc:/Progra~1/R/R-2.13.1/bin/i386 -lR -lRblas -lRlapack -lRiconv -lRzlib
-lRgraphapp -Lc:/Progra~1/R/R-2.13.1/library/Rcpp/libs/i386 -lRcpp
-Lc:/Progra~1/R/R-2.13.1/library/Rcpp/libs/x64 -lRcpp
-Lc:/Progra~1/R/R-2.13.1/library/RInside/libs/i386 -llibRInside -o em00
[[alternative HTML version deleted]]