# Create a temporary directory for examples
temp_dir <- tempdir()
data_path <- file.path(temp_dir, "boilerplate_example", "data")
# Initialise unified JSON database (new default)
boilerplate_init(
data_path = data_path,
create_dirs = TRUE,
create_empty = TRUE,
confirm = FALSE,
quiet = TRUE
)
# Check that unified JSON file was created
list.files(data_path)
# Initialise with default content in both formats
boilerplate_init(
data_path = data_path,
create_empty = FALSE,
format = "both",
confirm = FALSE,
quiet = TRUE
)
# Clean up
unlink(file.path(temp_dir, "boilerplate_example"), recursive = TRUE)
Run the code above in your browser using DataLab