I'm running a 64-bit Windows 7 platform.
I have added to my installed programs/libraries:
Rtools
R (software)
Rcpp (R package)
inline (R package)
I tried out a snippet found here
## now with Rcpp and C++
library(inline)
# and de?ne our version in C++
src <- "int n = as<int>(ns);
double x = as<double>(xs);
for (int i=0; i<n; i++) x=1/(1+x);
return wrap(x); "
l <- cxxfunction(signature(ns="integer", xs="numeric"),
body=src, plugin="Rcpp")
But that doesn't work (That is not a surprise to be honest as I even didn't specified eg the location of Rtools). I get the following error message:
Error in system(cmd, intern = !verbose) : 'C:/Program' not found
I'm not sure of what that means. And, I have been stuck there for a couple of hours now. Can anyone help me a bit, please?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…