View source: R/get_package_version.R
| get_package_version | R Documentation | 
packageVersion converts to class package_version,
which then again would need to be converted for compareVersion.
So this is a modified copy of packageVersion skipping the
conversion to package_version.
get_package_version(x, lib_loc = NULL)
| x | A character giving the package name. | 
| lib_loc | See argument  | 
A character giving the package version.
Other version functions: 
get_session_string(),
is_r_package_installed(),
is_version_sufficient()
Other package functions: 
is_r_package_installed(),
is_version_sufficient(),
load_internal_functions(),
rename_package()
get_package_version("base")
try(get_package_version("mgcv"))
utils::compareVersion("1000.0.0", get_package_version("base"))
utils::compareVersion("1.0", get_package_version("base"))
# from ?is_version_sufficient:
is_version_sufficient(installed = get_package_version("base"),
                      required = "1.0")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.