get_cran_package_url {risk.assessr}R Documentation

Get CRAN Package URL

Description

This function constructs the CRAN package URL for a specified package and version.

Usage

get_cran_package_url(package_name, version, last_version, all_versions)

Arguments

package_name

A character string specifying the name of the package.

version

An optional character string specifying the version of the package.

last_version

A character string specifying the latest available version of the package.

all_versions

A character vector of all available versions of the package.

Value

A character string containing the URL to download the package tarball, or 'NULL' if the version is not found in the list of available versions.

Examples


url_result <- get_cran_package_url("dplyr", NULL, "1.0.10", c("1.0.0", "1.0.10"))


[Package risk.assessr version 2.0.0 Index]