R Integration
Enabling R connectivity
-
Download R, install it, and the R Console ( http://cran.rstudio.com/ ).
-
Open the R Console.
-
Install Rserve using the following command from within the R Console:
install.packages("Rserve")
-
Initiatiate the Rserve library using the following command:
library(Rserve)
-
Run Rserve by executing the following command:
Rserve()
Only 2, 4 & 5 need to be repeated when R connectivity is required.
Example:
NOTE: Connectivity by default is over Port 6311.
-
To enable authentication across the Rserve TCP/IP link, create a password file (pwdfile.pwd).
auth required
pwdfile [path of password file]
Example:
remote enable
auth required
port 6311
pwdfile C:\\RIntegration\\pwdfile.pwd
-
Load the created configuration file (the default Rserve configuration file is still loaded, but its settings have lower priority) and run Rserve:
Rserve(args="--RS-conf [path of configuration file]")
Example:
Rserve(args="--RS-conf C:\\RIntegration\\rconfig.conf")