Skip to contents

Write a data list to a CEATTLE xlsx workbook

Usage

write_data(data_list, file = "Rceattle_data.xlsx")

Arguments

data_list

Rceattle data_list object

file

Filename to write. Must end in '.xlsx'

See also

build_data() to assemble or edit a data list in R, read_data() to read one back. A model_config() slot is not written to the workbook and does not survive the round-trip (a warning is issued); persist it separately with save_config() / load_config().

Examples


library(Rceattle)
data(BS2017SS)
out_file <- file.path(tempdir(), "BS2017SS.xlsx")
write_data(data_list = BS2017SS, file = out_file)
file.remove(out_file)
#> [1] TRUE