Skip to contents

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)

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.

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.

Examples

if (FALSE) { # \dontrun{
download_and_parse_dependencies("dplyr")
} # }