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 the Modeling and ForecastingTime Series AnalysisReports tools. The Python functions are applied in the uniform formula editor.

NOTE. Only integration with Python 3.5 is supported. The bitness of Python Foresight Analytics Platform must match

To enable integration with Python:

  1. Load Python distribution file.

  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. Select the Add Python 3.5 to PATH checkbox in the Python installer to add a path to the folder with installed Python in the Path system variable.

The integration of Foresight Analytics Platform with Python will be executed. All executed scripts must be in the Foresight Analytics Platform installation folder.

To determine additional folder with scripts:

Integration with R

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

To connect R statistical package:

  1. Install the R package on the local computer and application server, if theTask Scheduler tool is supposed to be used to start modeling problems calculation.

    1. Load R installer.

    2. Load RServe. On using Windows OS, use the RServe binary files.

    3. Install R.

NOTE. For details about R package installation, see the R documentation.

    1. Install RServe.

NOTE. For details about Rserve package installation, see the Rserve documentation.

On using Windows Os unpack the RServe binary files to any folder.

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

NOTE. It is not allowed to install RServe to Windows OS 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?