nomnoml_validate | R Documentation |
V8
JavaScript engine to validate a nomnoml
diagram.Although the nomnoml
widgets render very quickly in the IDE, it can take a
few seconds to grab a static screenshot and create a png
file. In these
situations it can be helpful to validate if the nomnoml
JS library can
parse a diagram.
This function returns TRUE
if a diagram can be parsed, and FALSE
otherwise. If FALSE
the function also throws a warning.
nomnoml_validate(diagram = "[test]")
diagram |
A |
Either TRUE or FALSE
nomnoml()
## Not run:
if (requireNamespace("V8", quietly = TRUE)) nomnoml_validate("[hello] -> [world]")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.