ez.eval | R Documentation |
eval
wrapper of eval
ez.eval(cmd, env = parent.frame())
ez.evaluate(cmd, env = parent.frame())
cmd |
an R cmd in text, e.g., constructed with sprintf() |
env |
caller's envir, could be environment(), .GlobalEnv (same as globalenv()), default is parent.frame() if default parent.frame() does not work properly, try passing environment() tricky/hard to hard-code/default it in this wrapper function, R does not support call stack well. |
this function evaluates the cmd in the caller's envir, so the actual return depends on the caller/cmd
ez.eval('z=9',environment())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.