JSContext-method-get | R Documentation |
Get the value of a variable from the current context
get(var_name)
var_name |
The name of the variable to retrieve |
An object of class NULL
of length 0.
The value of the variable
## Not run:
ctx <- JSContext$new()
ctx$source(code = "var a = 1;")
ctx$get("a")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.