language-extensions/R/test/src/RExtensionLibraryApiTests.cpp
//----------------------------------------------------------------------------------------------
// Name: RExtensionLibraryApiTests::GetVersionOfLibrary
//
// Description:
//  Finds the version of the given extLibName by executing the script that finds the package
//  version. Library and package are synonyms and refer to the same object.
//
// Returns:
//  The version of the library installed or throws an exception if not installed.
//
:GetVersionOfLibrary
Description:
Finds the version of the given extLibName by executing the script that finds the package
version. Library and package are synonyms and refer to the same object.

The version of the library installed or throws an exception if not installed.
: GetVersionOfLibrary Description : Finds the version of the given extLibName by executing the script that finds the package version . Library and package are synonyms and refer to the same object . The version of the library installed or throws an exception if not installed .
string RExtensionLibraryApiTests::GetVersionOfLibrary(string extLibName)
	{
		string versionScript = "as.character(packageVersion('" + extLibName + "'));";
		string version = ExecuteScriptAndGetResultAsString(versionScript);
		return version;
	}
string RExtensionLibraryApiTests :: GetVersionOfLibrary ( string extLibName ) { string versionScript = " " + extLibName + " " ; string version = ExecuteScriptAndGetResultAsString ( versionScript ) ; return version ; }
Name: RExtensionLibraryApiTests::GetVersionOfLibrary
Description:
Finds the version of the given extLibName by executing the script that finds the package
version.
Name : RExtensionLibraryApiTests :: GetVersionOfLibrary Description : Finds the version of the given extLibName by executing the script that finds the package version .