evaltext: Concatenate and evaluate string expressions in a specified...

Description Usage Arguments Value

View source: R/utils.r

Description

This function allows to write in a shorter form the evaluation of a vector of characters.

Usage

1
2
3
4
5
6
evaltext(
  ...,
  envir = parent.frame(),
  enclos = if (is.list(envir) || is.pairlist(envir)) parent.frame() else baseenv(),
  sep = ""
)

Arguments

...

character strings holding the code to be evaluated

envir

the environment in which expr is to be evaluated. May also be NULL, a list, a data frame, a pairlist or an integer as specified to sys.call.

enclos

Relevant when envir is a (pair)list or a data frame. Specifies the enclosure, i.e., where R looks for objects not found in envir. This can be NULL (interpreted as the base package environment, baseenv()) or an environment.

sep

separator character to be used as in the paste function

Value

The result of evaluating the object: for an expression vector this is the result of evaluating the last element


pezzacolori/boris-r-misc documentation built on Sept. 14, 2021, 1:46 a.m.