ISmRManager.UserRPath

Fore Syntax

UserRPath: String;

Fore.NET Syntax

UserRPath: string;

Description

The UserRPath property determines path to the R package installed and integrated with Prognoz Platform 9.

Comments

If value of the UserRPath property is not set, Prognoz Platform 9 searches for the path in the system registry. If R is installed with default settings, this property does not requires to be filled.

Fore Example

Add a link to the Stat system assembly.

Sub UserProc;
Var
    RManager: ISmRManager;
Begin
    RManager := New SmRManager.Create;
    RManager.Reset;
    If RManager.IsRExist = False Then
        RManager.UserRPath := "C:\Program Files\R\R-3.1.3";
        RManager.Reset;
   End If;
End Sub UserProc;

After executing the example it is checked if there is the R package installed and integrated with Prognoz Platform 9 at a local workstation. If the path to the R package installed and integrated with Prognoz Platform 9 is not found, it is written, and then the RServe session is refreshed.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Stat;

Public Shared Sub Main(Params: StartParams);
Var
    RManager: ISmRManager;
Begin
    RManager := New SmRManager.Create();
    RManager.Reset();
    If RManager.IsRExist = False Then
        RManager.UserRPath := "C:\Program Files\R\R-3.1.3";
        RManager.Reset();
   End If;
End Sub;

See also:

ISmRManager