| write_manifest_json | R Documentation |
Serializes a manifest to a pretty-printed JSON file via the jsonlite package.
write_manifest_json(manifest, path)
manifest |
A manifest as returned by |
path |
Destination path for the JSON file. |
The path, returned invisibly.
man <- make_manifest(list(project = "demo"), environment = FALSE)
man <- record(man, "row_count", observed = 20, expected = 20)
path <- write_manifest_json(man, tempfile(fileext = ".json"))
file.exists(path)
# Round-trips back through jsonlite.
back <- jsonlite::fromJSON(path, simplifyVector = FALSE)
back$results$row_count$status # "PASS"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.