Description Usage Arguments Examples
Convert a PFA list of lists into a JSON string in memory or a JSON file on disk.
1 2 |
doc |
The document to convert. |
file |
a string representing file path to write to. If ” then the string of JSON is returned |
force |
a logical indicating to unclass/skip objects of classes with no defined JSON mapping |
auto_unbox |
a logical indicating to automatically unbox all atomic vectors of length 1 |
pretty |
a logical indicating to add indentation whitespace to JSON output. |
digits |
max number of decimal digits to print for numeric values. Use I() to specify significant digits. Use NA for max precision. |
... |
additional arguments passed to toJSON |
1 2 3 4 5 6 | ## Not run:
my_pfa_doc <- pfa_document(avro_double, avro_double, expression(input + 10))
write_pfa(my_pfa_doc)
write_pfa(my_pfa_doc, file = "my-model.pfa")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.