Skip to main content

interp_package_version

Function interp_package_version 

Source
fn interp_package_version(
    args: &[RValue],
    named: &[(String, RValue)],
    context: &BuiltinContext<'_>,
) -> Result<RValue, RError>
Expand description

Get the version of an installed package from its DESCRIPTION file.

@param pkg character scalar: the package name @param lib.loc character vector: library paths to search (defaults to .libPaths()) @return character scalar: the version string (e.g. “1.4.2”) @namespace utils