Skip to contents

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