Learn R Programming

risk.assessr (version 3.0.1)

parse_dcf_dependencies_version: Parse Dependencies from a Package DESCRIPTION File

Description

This function extracts and returns the dependencies from the DESCRIPTION file of an R package, focusing on the `Imports` field.

Usage

parse_dcf_dependencies_version(path)

Value

A data frame with columns: - `package`: The name of the imported package. - `type`: The type of dependency (e.g., "Imports").

Arguments

path

A character string specifying the path to the package directory containing the DESCRIPTION file.

Examples

Run this code

if (FALSE) {
parse_dcf_dependencies_version("/path/to/package")
}

Run the code above in your browser using DataLab