write_ini: Write R list to Hector INI file

Description Usage Arguments Value Author(s) Examples

View source: R/write_ini.R

Description

Write R list to Hector INI file

Usage

1
write_ini(ini_list, file)

Arguments

ini_list

Hector INI named, nested list, such as that returned by read_ini().

file

Output file, as character string or connection. See base::writeLines().

Value

ini_list, invisibly

Author(s)

Alexey Shiklomanov

Examples

1
2
3
4
5
6
l <- list(a = list(a1 = 5, a2 = 3.5),
          b = list(some_file = "hello", `b3[50]` = 5))
tmp <- tempfile()
write_ini(l, tmp)
# Write to `stdout()`
write_ini(l, "")

JGCRI/hectortools documentation built on March 31, 2020, 4:44 p.m.