parse_deps_versions: Parse Package Dependencies

Description Usage Arguments Value Examples

Description

Parse Package Dependencies

Usage

1
parse_deps_versions(string, full = FALSE, all = FALSE)

Arguments

string

Specification of a set of dependencies either as a character vector or as a single string as returned by devtools::as.package in fields Depends, Imports or Suggests.

full

logical that indicates if version requirements should also be returned.

all

loigical that indicates if R requirement and base packages should be indluded in the result.

Value

a character vector if full=FALSE or a character matrix otherwise.

Examples

1
2
3
parse_deps_versions("a, b, c")
# with some version requirement
parse_deps_versions("a (>= 1.2.3), b, c (<= 2.5)")

renozao/repotools documentation built on May 27, 2019, 5:53 a.m.