Skip to contents

Reads in a file in Tom's Obvious Minimal Language (TOML) format and returns its content as a (nested) strict list.

Usage

toml_read(input, from_file = TRUE, verbose = FALSE)

Arguments

input

If from_file = TRUE, the path to a TOML file as a character scalar. Otherwise, TOML content as a character vector.

from_file

Whether input is the path to a TOML file or already a character vector of TOML content.

verbose

[logical] Optional verbosity flag, no current effect

Value

A strict list.

Details

The file is parsed using RcppTOML::parseTOML(escape = FALSE).

See also

Other TOML functions: toml_validate()