Learn R Programming

deepdep (version 0.4.4)

get_description: Scrap the DESCRIPTION file and CRAN metadata of the package

Description

This function uses api of CRAN Data Base to scrap the DESCRIPTION file and CRAN metadata of the package. It caches the results to speed the computation process.

Usage

get_description(package, bioc = FALSE, local = FALSE, reset_cache = FALSE)

Value

An object of package_description class.

Arguments

package

A character. Name of the package that is on CRAN, Bioconductor repository or locally installed. See bioc and local arguments.

bioc

A logical value. If TRUE the Bioconductor dependencies data will be taken from the Bioconductor repository. For this option to work properly, BiocManager package needs to be installed.

local

A logical value. If TRUE only data of locally installed packages will be used (without API usage).

reset_cache

A logical value. If TRUE the cache will be cleared before obtaining the list of packages.

Examples

Run this code
library(deepdep)

# \donttest{
description <- get_description("ggplot2")
description

description_local <- get_description("deepdep", local = TRUE)
description_local
# }

Run the code above in your browser using DataLab