Download and installation
Quick Installation guide
Having installed the R package you now need to install Rserve.
Setting up Rserve and running it
To be able to use R as a back-end for the WPS, it is also necessary to install Rserve. The wps connects to R using Rserve, which is available from CRAN. First we need to install Rserve. We'll do this from CRAN.
- Define a library (e.g. Rlibs) where the R libraries are stored, and start R with R_LIBS=~/Rlibs R
- On the R prompt, install Rserve by > install.packages("Rserve")
-
The intamap package can be installed similarly, and automatically loaded by:
> install.packages("intamap")
> library(intamap)
> timeModels <- generateTimeModels()
> .First <- function() {
library(intamap)
}
> q("yes") This creates a file called .Rdata which will be loaded every time R/Rserve is started from the same directory. The line > timeModels <- generateTimeModels()
is necessary for generating time models that are consistent with the architecture where Rserve is running. - Rserve can now be started, from the same directory where it was started earlier and in daemon mode, by R_LIBS=~/Rlibs nohup R CMD Rserve --no-save & This will append the output from R to the logfile nohup.out.
You can find more details about the installation of Rserve here .
Now you need to install the INTAMAP WPS.