Altair® Panopticon

 

R Integration

Enabling R connectivity

  1. Download R, install it, and the R Console ( http://cran.rstudio.com/ ).

  1. Open the R Console.

  2. Install Rserve using the following command from within the R Console:

install.packages("Rserve")

  1. Initiatiate the Rserve library using the following command:

library(Rserve)

  1. 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.

  1. 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

  1. 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")