wrap_lexicon: Load a functions from a lexicon into an environment

Description Usage Arguments Value

View source: R/giftwrap.R

Description

Load a functions from a lexicon into an environment

Usage

1
2
3
4
5
6
7
8
wrap_lexicon(
  lexicon,
  commands = NULL,
  subcommands = NULL,
  drop_base = FALSE,
  env = parent.frame(),
  use_namespace = NULL
)

Arguments

lexicon

a dataframe containing columns for base, command, subcommand, and giftwrap_command (the full command)

commands

regex filtering for any commands in the lexicon

subcommands

regex filtering for any subcommands in the lexicon

drop_base

drop the base-level command from the caller function

env

the environment into which the giftwrap functions should be exported

use_namespace

a character string of a namespace for giftwrap to create and export the lexicon functions into

Value

Functions exported to the specified environment


giftwrap documentation built on Dec. 15, 2020, 5:39 p.m.