Learn R Programming

wrapr (version 1.0.1)

seval: Execute expr with general substitutions specified in alias.

Description

Note: this method uses string substitution and is willing to substitute in arbitrary content, please prefer using let where applicable.

Usage

seval(alias, expr, ..., eval = TRUE, debugPrint = FALSE)

Arguments

alias

mapping from free names in expr to target names to use.

expr

block to prepare for execution.

...

force later arguments to be bound by name.

eval

logical if TRUE execute the re-mapped expression (else return it).

debugPrint

logical if TRUE print debugging information when in stringsubs mode.

Value

result of expr executed in calling environment (or expression if eval==FALSE)

See Also

let, ateval, beval

Examples

Run this code
# NOT RUN {
seval(c(COLS= "c('Sepal.Width', 'Petal.Length')"),
      head(iris[, COLS, drop=FALSE]) )

# }

Run the code above in your browser using DataLab