write_json_file {yyjsonr} | R Documentation |
Convert R object to JSON file
Description
Convert R object to JSON file
Usage
write_json_file(x, filename, opts = list(), ...)
Arguments
x |
the object to be encoded |
filename |
filename |
opts |
Named list of serialization options. Usually created by |
... |
Other named options can be used to override any options in |
Value
None
See Also
Other JSON Serializer:
write_json_str()
,
write_ndjson_file()
,
write_ndjson_str()
Examples
tmp <- tempfile()
write_json_file(head(iris, 3), tmp)
read_json_file(tmp)
[Package yyjsonr version 0.1.20 Index]