1. Install R in the usual way, then install the latest binary version of Rserve as a package from CRAN from within R, i.e. load R, and enter:

install.packages("Rserve")

2. Start the Rserve server. You can do so in an R session with:

library(Rserve)
Rserve()

Alternatively, in a terminal/command prompt, enter:

R CMD Rserve                        (Linux)
<path>\R.exe CMD <path>\Rserve.exe  (Windows)

If you use the interface often, you may want to create a shortcut for starting Rserve. For Windows, an example entry for the Target of the shortcut might be:

"C:\Program Files\R\R-X.X.X\bin\R.exe" CMD C:\Progra~1\R\R-X.X.X\library\Rserve\Rserve.exe

3. In J, install the stats/r addon with Package Manager.

Then try:

   load 'stats/r/rserve'
   Rget 'rnorm(5)'
2.11491 1.4127 _0.37932 1.62199 _1.16579

Interfaces/R/Rserve/Installation (last edited 2008-12-08 10:45:34 by )