I\'m using a Windows 7 x64 machine with R-3.1.0. I installed the Rserve package through Rstudio.
The start of Rserve is successful with the following code in Rstudio:
After looking at the Rserve source code and making some test I found that on Windows platform Rserve try to load the configuration file from the current working directory. Also pay attention because on Windows the file name is RServ.cfg and not Rserv.conf as documented.
The current working directory depends of the process, for example using RStudio by default it is your Documents and Settings folder:
C:\Users\[username]\Documents
but can be changed in the "Global Options" of the IDE
So you can create an "RServ.cfg" text file in that directory with your needed options and starting RServe in the usual way in RStudio
Rserve()
will load your configuration.
Rserve does not automatically come with a config file, you must make one. Best steps for doing so:
Look in the $RHOME/bin
directory
If you can't find it here is a different way to approach it:
Rserve
at [http://rforge.net/snapshot/Rserve_.tar.gz], and save it in your desired directoryR CMD INSTALL Rserve_.tar.gz
This allows you to leave Rserve
where you want it.
You can start Rserve by specifying the location of the config file. In R instead of just Rserve()
try the following:
Rserve(args="--RS-conf C:\\folder\\Rserv.cfg")
If path is more complicated you need to massage it a little bit:
Rserve(args="--RS-conf C:\\PROGRA~1\\R\\R-215~1.2\\library\\Rserve\\Rserv.cfg")