Save meta-data information to a file for safe keeping. The function saves the data in json-format, which best preserves the information.

nettskjema_write_meta(meta, file, pretty = TRUE, ...)

# S3 method for default
nettskjema_write_meta(meta, file, pretty = TRUE, ...)

# S3 method for nettskjema_meta_raw
nettskjema_write_meta(meta, file, pretty = TRUE, ...)

# S3 method for nettskjema_meta_data
nettskjema_write_meta(meta, file, pretty = TRUE, ...)

Arguments

meta

object of class nettskjema_meta class

file

file name or path

pretty

logical. If json-file should be made "pretty"

...

other arguments to write_json

Value

no return value. Writes a file to path.

Examples

if (FALSE) { form_id <- 1100000 my_meta <- nettskjema_get_meta(form_id) nettskjema_write_meta(my_meta, "my/path/meta_110000.json") }