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 [email protected]

Examples

1
2
dat <- list("Settings" = list("removal_rule" = 1, use_groups = 1))
write_dat(dat, "settings.dat")

zonator documentation built on Dec. 17, 2017, 5:03 p.m.