# \donttest{
### Note that this example writes to a local file!
### Temporary file to save to
tmpFile <- tempfile(fileext = ".html");
### Load an example (pre)registration specification
data("examplePrereg_1", package = "preregr");
### Save it to an HTML file
preregr::prereg_spec_to_html(
examplePrereg_1,
file = tmpFile
);
### Import the example again
importedPreregr <-
preregr::import_from_html(
tmpFile
);
### Show the result
preregr::prereg_show_item_completion(
importedPreregr,
section="metadata"
);
# }
Run the code above in your browser using DataLab