toml_read: Read in and parse TOML file as strict list

toml_readR Documentation

Read in and parse TOML file as strict list

Description

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

Details

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

Value

A strict list.

See Also

Other TOML functions: toml_validate()


salim-b/pal documentation built on Feb. 28, 2025, 6:51 p.m.