Using Rserve to call R functions from Java
Rserve package is a TCP/IP server that accepts requests from clients.
allows other technologies to access R. Every connection has a separate workspace and working directory.
If you have not already downloaded the files for this chapter, do so now and ensure that the files are in your R working directory:
- Create a
javasamplesfolder and move all the files with extension
classinto this folder under your working directory.
- Load the package using
- Download the three JAR files
and JRIEngine.jarfrom http://www.rforge.net/JRI/files/ and the
RserveEngine.jarfrom http://www.rforge.net/Rserve/files/ ...