search for: newrcppvectorexample

Displaying 2 results from an estimated 2 matches for "newrcppvectorexample".

2013 Dec 02
0
g++ ignores TMPDIR when called from install.packages
...I"/home/jeroen/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/include" -fpic -O3 -pipe -g -c newRcppStringVectorExample.cpp -o newRcppStringVectorExample.o g++ -I/usr/share/R/include -DNDEBUG -I"/home/jeroen/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/include" -fpic -O3 -pipe -g -c newRcppVectorExample.cpp -o newRcppVectorExample.o g++ -shared -o RcppExamples.so RcppDataFrame.o RcppRNGs.o newRcppDateExample.o newRcppMatrixExample.o newRcppParamsExample.o newRcppStringVectorExample.o newRcppVectorExample.o Fatal error: creating temporary file for '-e' failed -L/usr/lib/R/lib -lR g++: error...
2010 Dec 03
1
Error using Rcpp under windows xp
...file. 2) installed Rcpp packages 3) set enviroment variables 'path' to make C:\Program Files\R\R-2.12.0\library\Rcpp\include\ searchable The sample C++ code I used is from the original website: http://dirk.eddelbuettel.com/code/rcpp.examples.html #include <Rcpp.h> RcppExport SEXP newRcppVectorExample(SEXP vector) { Rcpp::NumericVector orig(vector); // keep a copy (as the classic version does) Rcpp::NumericVector vec(orig.size()); // create a target vector of the same size // we could query size via // int n = vec.size(); // and loop over the vector, but using the STL...