How to Set Up Integration with R?

The time series analysis tool enables the user to set up integration with the R package extending analytical features of the tool.

For details about R, see the R documentation.

Integration in the Desktop Application

  1. Install the R package:

    1. Download the R installer from the site http://www.r-project.org/.

    2. Use the installer to install R.

    3. Download RServe binary files from the site http://www.rforge.net/Rserve/files/.

    4. Unpack RServe binary files to the S\bin\i386 folder, where S is R installation folder. Make sure that the Rserve.exe file is copied.

NOTE. It is not allowed to install RServe using the R interface because the required files will not be copied to the R installation folder.

    1. Start R.

    2. Select the Packages > Install Package(s) main menu item and install the required R packages. If these packages have already been downloaded to the workstation, they can be installed by selecting the Packages > Install Packages from Local Zip-Files main menu item. For details about packages required for R method calculation see the Which Prognoz Platform 9 Methods can be Calculated by R? section.

  1. Connect the R package to Prognoz Platform 9.

NOTE. This procedure is necessary if R is installed on the workstation different from the workstation, where Prognoz Platform 9 is installed.

    1. Select the Tools > Parameters main menu item in the time series analysis tool. The Parameters dialog box opens.

    2. Go to the External Modules tab and specify the folder, where the R Package is installed. For example:

After these procedures R methods are available to use in the desktop application.

Integration in the Web Application

  1. Perform the same procedures for integration of R that are used in the desktop application.

  2. Open the PP.xml file for edit.

  1. In the PP.xml file add the following code before the </pp> tag:

<AppConfig>

  <Modules>

   <TimeSeries >

    <ReportBox IsRExist="true" />

   </TimeSeries >

  </Modules>

</AppConfig>

  1. Save changes and close the PP.xml file.

  2. Restart the web server used by the web application, and also BI server.

After these procedures R methods are available to use in the web application.

See also:

Questions and Answers | Which Prognoz Platform 9 Methods can be Calculated by R? | Using R on Model Calculation