manage_commands | R Documentation |
Functions to manage commands to be evaluated.
.textEval(cmd, envir)
cmd |
A character vector containing commands to be executed. |
envir |
An environment in which to execute the commands. |
.textEval
returns the output of eval(parse(text=cmd), envir)
,
unless cmd
is empty in which case it returns NULL
.
Aaron Lun, Kevin Rue-Albrecht
myenv <- new.env()
myenv$x <- "Hello world!"
.textEval("print(x)", myenv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.