UserRPath: String;
UserRPath: string;
The UserRPath property determines the path to the installed and integrated with Foresight Analytics Platform R package.
If the value of the UserRPath property was not set, Foresight Analytics Platform searches for the path in the system registry. If R is installed with default settings, this property does not requires to be filled.
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 installed and integrated with Foresight Analytics Platform R package on the local workstation. If the path to the installed and integrated with Foresight Analytics Platform R package will not be found, it will be written, then the RServe session will be updated.
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: