Get the value of a variable from the current context

get(var_name)

Format

An object of class NULL of length 0.

Arguments

var_name

The name of the variable to retrieve

Value

The value of the variable

Examples

if (FALSE) { # \dontrun{
ctx <- JSContext$new()
ctx$source(code = "var a = 1;")
ctx$get("a")
} # }