O'Reilly logo

R Data Analysis Cookbook - Second Edition by Kuntal Ganguly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting ready

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:

  1. Create a javasamples folder, and move all the files with extension Java and class into this folder under your working directory.
  2. Install Rserve using install.packages('Rserve').
  3. Load the package using library(Rserve).
  4. Download the three JAR files, JRI.jar, REngine.jar, and JRIEngine.jar from http://www.rforge.net/JRI/files/ and the RserveEngine.jar files from http://www.rforge.net/Rserve/files/. Copy the four downloaded JAR files to the lib folder under your R working directory.
  5. You can either use the class files provided or compile the Java code. These class files are created with JDK version 1.8.0_25, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required