Learn R Programming

zonator (version 0.6.0)

write_dat: Write a Zonation run configuration (dat) file.

Description

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

Usage

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.

Examples

Run this code
# NOT RUN {
  
# }
# NOT RUN {
      dat <- list("Settings" = list("removal_rule" = 1, use_groups = 1))
      write_dat(dat, "settings.dat")
  
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab