fetch_vars: fetch variables

View source: R/internal.R

fetch_varsR Documentation

fetch variables

Description

Fetches variables from environment of containing function for use in internal function

Usage

fetch_vars(
  .vn,
  ...,
  evar = get0("evar", mode = "environment", envir = rlang::caller_env(), ifnotfound =
    new.env()),
  cenv = rlang::caller_env()
)

Arguments

.vn

named vector of variable names with their corresponding classes - to be tested with inherits

evar

Environment with variables passed to top level of function

cenv

The caller environment, stored automatically

e

The list made from ellipsis if parameters are input as ellipsis argument

penv

The parent of the caller environment, also stored automatically

sf

The system frames for searching if not found in previous two environments.


jagg19/AlpacaforR documentation built on July 3, 2023, 12:14 p.m.