JSContext-method-validate | R Documentation |
Checks whether JS code string is valid code in the current context
validate(code_string)
code_string |
The JS code to check |
An object of class NULL
of length 0.
A boolean indicating whether code is valid
## Not run:
ctx <- JSContext$new()
ctx$validate("1 + 2")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.