The function takes a nested list of values and writes it to a dat file (a Windows style .ini-file).

write_dat(x, filename, overwrite = FALSE)

Arguments

x

List containing the data to be written.

filename

String file path.

overwrite

Logical indicating whether the file should be overwritten.

Value

Invisible null.

Note

Only 1 level of nestedness is accepted.

Examples

if (FALSE) { dat <- list("Settings" = list("removal_rule" = 1, use_groups = 1)) write_dat(dat, "settings.dat") }