get_internal_package_url {risk.assessr} | R Documentation |
Get Internal Package URL
Description
This function retrieves the URL of an internal package on your internal Mirror, its latest version, and a list of all available versions.
Usage
get_internal_package_url(
package_name,
version = NULL,
base_url = "http://cran.us.r-project.org",
internal_path = "/src/contrib/"
)
Arguments
package_name |
A character string specifying the name of the package. |
version |
An optional character string specifying the version of the package. Defaults to 'NULL', in which case the latest version will be used. |
base_url |
a character string of internal package manager link |
internal_path |
a character string of internal package mirror link |
Value
A list containing: - 'url': A character string of the package URL (or 'NULL' if not found). - 'last_version': A character string of the latest version of the package. - 'all_versions': A character vector of all available package versions.
Examples
## Not run:
# Retrieve a specific version URL of a package
result <- get_internal_package_url("internalpackage", version = "1.0.1")
print(result)
## End(Not run)
[Package risk.assessr version 2.0.0 Index]