View source: R/read_write_sframe.R
| write_sframe | R Documentation |
Serialises an sframe instrument object to a UTF-8 JSON file with a
SHA-256 integrity hash. The instrument is validated before writing unless
the object already carries a valid status. The hash is computed over the
full serialised content with the hash.value field set to an empty string.
write_sframe(instrument, path, pretty = TRUE, overwrite = FALSE)
instrument |
An |
path |
Character. The file path to write to. The |
pretty |
Logical. Whether to write formatted JSON with indentation.
Defaults to |
overwrite |
Logical. Whether to overwrite an existing file. Defaults
to |
The file path, invisibly.
read_sframe(), validate_sframe()
instr <- read_sframe(
system.file("extdata", "tourism_services_demo.sframe",
package = "surveyframe")
)
out <- write_sframe(instr, tempfile(fileext = ".sframe"))
file.exists(out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.