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

The first install location of the library if it is found or throws an exception if
it is not installed and not found.
: GetLocationOfLibrary Description : Finds the location of the given extLibName by executing the script that finds the package location . Library and package are synonyms and refer to the same object . The first install location of the library if it is found or throws an exception if it is not installed and not found .
string RExtensionLibraryApiTests::GetLocationOfLibrary(string extLibName)
	{
		string locationScript = "find.package(package = '" + extLibName + "')[1];";
		string location = ExecuteScriptAndGetResultAsString(locationScript);
		return location;
	}
string RExtensionLibraryApiTests :: GetLocationOfLibrary ( string extLibName ) { string locationScript = " " + extLibName + " " ; string location = ExecuteScriptAndGetResultAsString ( locationScript ) ; return location ; }
Name: RExtensionLibraryApiTests::GetLocationOfLibrary
Description:
Finds the location of the given extLibName by executing the script that finds the package
location.
Name : RExtensionLibraryApiTests :: GetLocationOfLibrary Description : Finds the location of the given extLibName by executing the script that finds the package location .