Learn R Programming

risk.assessr (version 3.0.1)

download_and_parse_dependencies: Download and Parse Dependencies of an R Package

Description

This function downloads a specific version of an R package from a repository, extracts it, and parses its dependencies from the DESCRIPTION file.

Usage

download_and_parse_dependencies(package_name, version = NA)

Value

A data frame containing: - `package`: The name of the dependency. - `type`: The type of dependency (e.g., "Imports"). - `parent_package`: The original package for which dependencies were parsed.

Arguments

package_name

A character string representing the name of the package to download.

version

A character string specifying the version of the package to download. Defaults to `NA`, which fetches the latest version.

Examples

Run this code
if (FALSE) {
download_and_parse_dependencies("dplyr")
}

Run the code above in your browser using DataLab