get_var | R Documentation |
qenv
Instead of
get_var()
use native R operators/functions:
x[[name]]
, x$name
or get()
:
Retrieve variables from the qenv
environment.
get_var(object, var)
## S3 method for class 'qenv.error'
x[[i]]
object , x |
( |
var , i |
( |
The value of required variable (var
) within qenv
object.
q <- qenv()
q1 <- eval_code(q, code = quote(a <- 1))
q2 <- eval_code(q1, code = "b <- a")
get_var(q2, "b")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.