Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

parse_deps

Parse package dependency strings.


Description

Parse package dependency strings.

Usage

parse_deps(string)

Arguments

string

to parse. Should look like "R (>= 3.0), ggplot2" etc.

Value

list of two character vectors: name package names, and version package versions. If version is not specified, it will be stored as NA.

Examples

parse_deps("httr (< 2.1),\nRCurl (>= 3)")
# only package dependencies are returned
parse_deps("utils (== 2.12.1),\ntools,\nR (>= 2.10),\nmemoise")

pkgload

Simulate Package Installation and Attach

v1.2.1
GPL-3
Authors
Hadley Wickham [aut], Jim Hester [aut, cre], Winston Chang [aut], RStudio [cph], R Core team [ctb] (Some namespace and vignette code extracted from base R)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.