list2toml: list to toml

View source: R/list2toml.r

list2tomlR Documentation

list to toml

Description

Convert list to a string vector that represents of TOML. Each item of the vector represents a line of the TOML file.

Usage

list2toml(x)

Arguments

x

a named list

Details

list2toml process structured lists recursively by first processing any non-list members and then processing remaining items of the list type using another call of lit2toml. In these calls, the name of the item is used as a parent_name.

Value

a string vector representing individual lines of TOML representation of x.

Examples

config = list(
    "xml" = list("chunk" = "<xml>{{tag}}</xml>"),
    "templates" = list(),
    "defaults" = list("tag" = "Just another tag in the TOML!")
     )
list2toml(config)

bioDS/beter documentation built on June 15, 2022, 7:58 a.m.