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

Description Usage Arguments Value Note Author(s) Examples

View source: R/write-input.R

Description

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

Usage

1
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.

Author(s)

Joona Lehtomaki joona.lehtomaki@gmail.com

Examples

1
2
3
4
5
  ## Not run: 
      dat <- list("Settings" = list("removal_rule" = 1, use_groups = 1))
      write_dat(dat, "settings.dat")
  
## End(Not run)

zonator documentation built on July 8, 2020, 6:18 p.m.