Functions to manage commands to be evaluated.
Value
.textEval
returns the output of eval(parse(text=cmd), envir)
,
unless cmd
is empty in which case it returns NULL
.
Examples
myenv <- new.env()
myenv$x <- "Hello world!"
.textEval("print(x)", myenv)
#> [1] "Hello world!"