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

spec

Parse a mod or pkg spec expression passed to use


Description

Parse a mod or pkg spec expression passed to use

Usage

parse_spec(expr, alias)

mod_spec(spec, ...)

pkg_spec(spec, ...)

spec_name(spec)

Arguments

expr

the mod or pkg spec expression to parse

alias

the mod or pkg spec alias as a character, or NULL

spec

named list of information the parser constructed from a given spec expression

...

further information about a spec, not represented by the spec expression parse tree

Value

parse_spec returns a named list that contains information about the parsed mod specification. Currently it contains:

name

the module or package name

prefix

the prefix, if the spec is a module

attach

a named vector of symbols to attach, or TRUE to attach all symbols, or NULL to attach nothing

alias

the module or package alias

explicit

a logical value indicating whether the caller provided an explicit alias


box

Write Reusable, Composable and Modular R Code

v1.0.2
MIT + file LICENSE
Authors
Konrad Rudolph [aut, cre] (<https://orcid.org/0000-0002-9866-7051>), Michael Schubert [ctb] (<https://orcid.org/0000-0002-6862-5221>)
Initial release

We don't support your browser anymore

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