View source: R/write_field_json.R
write_field_json | R Documentation |
Write field visit monitoring event data to JSON format.
write_field_json(x, path, overwrite = FALSE)
x |
'list' with compoents of class 'mlms.sheet'.
See returned object from the |
path |
'character' string. Path to the JSON file. |
overwrite |
'logical' flag. Whether to overwrite the JSON file. |
Worksheet data as a 'list' with compoents of class 'mlms.sheet'.
J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center
read_field_json
function for reading field data in JSON format.
sheets <- read_field_xlsx(
path = system.file("/extdata/ex-field.xlsx", package = "mlms")
)
path <- tempfile("sheets-", fileext = ".json")
write_field_json(sheets, path = path)
if (interactive()) file.show(path)
unlink(path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.