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.
Install the R package:
Download the R installer from the site http://www.r-project.org/.
Use the installer to install R.
Download RServe binary files from the site http://www.rforge.net/Rserve/files/.
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.
Start R.
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.
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.
Select the Tools > Parameters main menu item in the time series analysis tool. The Parameters dialog box opens.
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.
Perform the same procedures for integration of R that are used in the desktop application.
Open the PP.xml file for edit.
In the PP.xml file add the following code before the </pp> tag:
<AppConfig>
<Modules>
<TimeSeries >
<ReportBox IsRExist="true" />
</TimeSeries >
</Modules>
</AppConfig>
Save changes and close the PP.xml file.
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