nomnoml_validate {nomnoml} | R Documentation |
Use the V8
JavaScript engine to validate a nomnoml
diagram.
Description
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.
Usage
nomnoml_validate(diagram = "[test]")
Arguments
diagram |
A |
Value
Either TRUE or FALSE
See Also
Examples
## Not run:
if (requireNamespace("V8", quietly = TRUE)) nomnoml_validate("[hello] -> [world]")
## End(Not run)
[Package nomnoml version 0.3.0 Index]