Has anyone gotten RLink to work with Rtools (or even tried)? If so a simple step-by-step would be much appreciated !
When attempting to access any Rtools functionality through RLink I get:
The following R error was encountered: Error in system(cmd, intern = \ !verbose) : 'C:/Program' not found
Background: I'm trying to get data in and out of the RStan package with Mathematica (mostly because Mathematica is the program I've used most for manipulating data and the more I can do in Mathematica the less time I'll have to spend learning how to manipulate the data in R) and Rtools is required for RStan.
Thanks for the responses- Some new info in response to the comments: I installed R 2.15.3 (since version 3 doesn't work with RLink in Windows yet) Then:
InstallR["RHomeLocation" -> "C:\\Program Files\\R\\R-2.15.3"]
And that works for the basic RLink functionality.
Through the R command line, I got the required packages installed.
Then restart Mathematica, and check to make sure the packages are installed (which they are) and accessible - at least at the level that REvaluate["library(Rcpp)"]
and REvaluate["library(rstan)"]
both seem to work - returning a list of the loaded libraries.
But then either running the "hello world" example from https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started or trying to use any of the rstan commands results in the above error.
Any further thoughts?
InstallR
)? I think R 3.0 doesn't work with RLink on Windows, so you'd need to use an older version. $\endgroup$update.packages()
from the R command line. $\endgroup$