get_dep_str {crandep}R Documentation

Find string corresponding to "Imports", "Depends" etc.

Description

Find string corresponding to "Imports", "Depends" etc.

Usage

get_dep_str(v, x)

Arguments

v

A vector of strings

x

One of the following dependency words: "Depends", "Imports", "LinkingTo", "Suggests", "Reverse_depends", "Reverse_imports", "Reverse_linking_to", "Reverse_suggests"

Value

A string of the concatenation of the dependencies

Examples

url.mass <- crandep:::cran_url("MASS")
html.mass <- crandep:::html_text_vec(url.mass)
crandep:::get_dep_str(html.mass, "Depends")

[Package crandep version 0.0.1 Index]