write_ini: Write R list to Hector INI file

Description Usage Arguments Value Author(s) Examples

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 May 7, 2019, 2:58 p.m.