C# Class Microsoft.R.Interpreters.RInstallation

Verifies that R is installed in the folder specified in settings. If nothing is specified settings try and find highest version.
ファイルを表示 Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
GetCompatibleEngines ( ISupportedRVersionRange svl = null ) : IEnumerable

Retrieves path to the latest (highest version) R installation from registry. Typically in the form 'Program Files\R\R-3.2.1' Selects highest from compatible versions, not just the highest.

RInstallation ( ) : System
RInstallation ( IRegistry registry, IFileSystem fileSystem ) : System

Private Methods

Method Description
GetCompatibleEnginesFromRegistry ( ISupportedRVersionRange svr ) : IEnumerable

Retrieves path to the all compatible R installations from registry.

GetInstalledEnginesFromRegistry ( ) : IEnumerable

Retrieves information on installed R versions in registry.

GetRVersionFromFolderName ( string folderName ) : System.Version
NameFromKey ( string key ) : string
TryFindRInProgramFiles ( ISupportedRVersionRange supportedVersions ) : IRInterpreterInfo

Method Details

GetCompatibleEngines() public method

Retrieves path to the latest (highest version) R installation from registry. Typically in the form 'Program Files\R\R-3.2.1' Selects highest from compatible versions, not just the highest.
public GetCompatibleEngines ( ISupportedRVersionRange svl = null ) : IEnumerable
svl ISupportedRVersionRange
return IEnumerable

RInstallation() public method

public RInstallation ( ) : System
return System

RInstallation() public method

public RInstallation ( IRegistry registry, IFileSystem fileSystem ) : System
registry IRegistry
fileSystem IFileSystem
return System