Connecting External Modules to Foresight Analytics Platform

Integration with Python

Integration with the Python language enables the user to extend functionalities of Foresight Analytics Platform in theModeling and ForecastingTime Series AnalysisReports tools. The Python functions are applied in the uniform formula editor.

NOTE. Integration with Python 3.5 or later is supported. The bitness of Python Foresight Analytics Platform must match

To enable integration with Python:

  1. Download the Python distribution file from the language developer site: https://www.python.org/downloads/.

  2. Install Python on the same computer where the Foresight Analytics Platform desktop application is installed. If Python is supposed to be used in the web application, install Python on the computer where BI server is located.

  3. Add path to the folder with Python installed to the Path system variable.

  4. Copy the python35.dll file from the Python installation folder to the Foresight Analytics Platform installation folder.

The integration of Foresight Analytics Platform with Python will be executed.

Integration with R

Connection of static package R allows to extend Foresight Analytics Platform in theModeling and ForecastingTime Series Analysis tools and in the uniform formula editor.

To connect R statistical package:

  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 the RServe binary files to the any convenient folder.

    5. Copy the Rserve.exe, Rserve_d.exe, Rserve.dll files from the K\Rserve\libs\i386\ R folder to the S\bin\i386 folder, where K is the folder with unpacked binary files RServe, and S is the R installation folder.

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. Detailed information about the packages required for R method calculation, is given in the Which Foresight Analytics Platform Methods can be Calculated Using R? section.

  1. In Foresight Analytics Platform specify the path where R package is installed, or server where R package is deployed.

NOTE. This step is necessary if R is installed on the workstation different from the workstation, where Foresight Analytics Platform is installed. If the R package is installed on the same workstation where Foresight Analytics Platform, path to the R directory will be already specified.

    1. Select the Tools > Parameters main menu item:

The Parameters dialog box opens.

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

So, the integration of Foresight Analytics Platform with R package will be performed.

See also:

Which Foresight  Analytics Platform Methods can be Calculated Using R?