JSContext-method-call | R Documentation |
Call a specified function in the JavaScript context with the provided arguments.
call(function_name, ...)
function_name |
The function to be called |
... |
The arguments to be passed to the function |
An object of class NULL
of length 0.
The result of calling the specified function
## Not run:
ctx <- JSContext$new()
ctx$source(code = "function add(a, b) { return a + b; }")
ctx$call("add", 1, 2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.