R Installation

image_pdfimage_print

Related links: R Installation of External Packages, Transform R Script

This chapter describes the R installation process that allows you to perform the R integration on Windows. For Linux, you must perform similar steps.

Installing R
  1. Download of R from http://www.r-project.org/ for Windows or Linux. The most recent tested release is R 3.0.3. For Windows, go to https://cran.r-project.org/bin/windows/base/.
  2. Start the Installer. The installation of R must be done on the same system as the Jedox Suite.

During the R installation you can select:

  • both 32-bit and 64-bit files
  • 32-bit files if you run Jedox Suite on 32-bit
  • 64-bit files if you run Jedox Suite on 64-bit
Installing R-package rJava (R to Java interface):
  1. Start the R console and enter the following command:
    install.packages(‘rJava’)
  2. Choose a CRAN mirror

Note: If you get an Error message on insufficient authorizations you have to start the R console as an administrator.

If the installation cannot be performed as above:

  1. Download the Windows binary according to the R version (the file rJava*.zip) from http://www.rforge.net/rJava/files/.
  2. Start the R console
  3. In the R console enter the following:
    install.packages(file.choose())
  4. A message is displayed, asking if you would like to use a personal library instead. Select “No”.
  5. In the File Picker, choose the downloaded file rJava*.zip.
Setting the system environment variables
  1. Set the System environment variable R_HOME to the R-installation directory, e.g. R_HOME=C:\Program Files\R\R-2.15.3
  2. Add the path to the R-executable to the System environment variable PATH. For example:
    32-bit Tomcat C:\Program Files\R\R-2.15.3\bin\i386
    64-bit Tomcat C:\Program Files\R\R-2.15.3\bin\x64

    Note: You must not use the path C:\Program Files\R\R-2.15.3\bin.

Changes in Jedox Integrator (Already done by Jedox Setup)

Verify that in the file \tomcat\bin\setenv.bat the line starting with set Library_Path looks like in the following example:

32-bit Tomcat Library_Path=%R_HOME%\library\rJava\jri\i386
62-bit Tomcat Library_Path=%R_HOME%\library\rJava\jri\x64

 

Note: if you need to define several directories for the Library_Path setting, the entries are separated by the character sequence <single quote><semicolon><single_quote>, as follows: ‘;’

Example: Library_Path=%R_HOME%\library\rJava\jri\x64';'C:\Program Files (x86)\Jedox\Jedox Suite\tomcat\webapps\etlserver\WEB-INF\lib\auth\x64

The Jedox Tomcat Service has to be removed and started again.

image_pdfimage_print