eval_expr: Metaprogramming

Description Usage Arguments Examples

View source: R/eval_expr.R

Description

Helper function to parse a vector with a single character element as code.

Usage

1
eval_expr(expr)

Arguments

expr

a vector of length 1 containing the code to be executed as a character element.

Examples

1
2
3
eval_expr('n <- 1 + 1')
cat(n)
## 2

rladeira/rutils documentation built on May 27, 2019, 9:28 a.m.