Rserve
About Rserve
|
Please read before downloading/using the Windows version of Rserve!
Binaries for R 2.4.1 and higher are now available via CRAN. Use install.packages("Rserve") in R to install the latest Rserve release. The R package contains both regular and debug version of Rserve, see ?Rserve. Installation: Copy the binary Rserve.exe to the same directory where R.dll is located (e.g. C:\Program Files\R\R-2.4.1\bin). Rserve automatically detects latest installed version from the registry. If you un-install any version of R, you have to re-install R, because the un-installation process removes entries from the registry even if you have another version of R installed. (Optionally Rserve can be started from anywhere as long as the R.dll is in the PATH, but this is not required if Rserve is copied into the bin directory). Compiling your own Rserve Rserve can be compiled from sources just like any other R package. If you cannot find a binary version for your R (updating to the latest R version is in general recommended!), you can compile Rserve yourself (assuming you know what this means). If you compiled R for Windows yourself, then you probaby know what to do. If you didn't, get the proper tools from this page and set the PATH correspondingly. Locate your R installation and unpack the source package in \src\library relative to the R root (that is you should get \src\library\Rserve directory). Go to \src\gnuwin32 and type: sh make libR.a make pkg-RserveThis should do the trick. If this is successful, you will find a new file Rserve.exe in the \bin directory. If you encounter problems, check your PATH setting and your tools (e.g. does gcc --version give you an error?). If this doesn't help, read the Windows FAQ and the \src\gnuwin32\INSTALL file in the source distribution of R. If you want to compile the debug-version of Rserve (which produces a lot of output, such as all packets sent, R objects/expresions involved etc.), replace make pkg-Rserve by make DEBUG=T pkg-Rserve in the above building process. Note: Rserve needs some R header files that are unfortunately missing from the binary distribution of R: Startup.h and psignal.h They can be found in the R sources in src/include and gnuwin32/fixed/h correspondingly. Please copy both files to the src/include directory of the Rserve package (since R 2.1 only psignal.h is needed and is included in the Rserve sources, so forget about it). Details concerning Windows version of Rserve
Since the Windows operating system doesn't support fork method for spawning copies of a process, it is not possible to initialize R and use initialized copies for all subsequent connections in parallel. Therefore the Rserve for Windows supports no concurrent connections. This implies that all subsequent connections share the same namespace and sessions (as in >=0.4 version on unix) cannot be supported. It is still possible to start multiple Rserves to handle multiple connections (just make sure you use different port for each one). |