qenv
R/qenv-get_var.R
get_var.Rd
Retrieve variables from the qenv environment.
get_var(object, var) # S4 method for qenv [[(x, i)
(qenv)
(character(1)) variable name.
character(1)
The value of required variable (var) within qenv object.
var
q <- qenv() q1 <- eval_code(q, code = quote(a <- 1)) q2 <- eval_code(q1, code = "b <- a") get_var(q2, "b") #> [1] 1 q2[["b"]] #> [1] 1