write_config: Write TOML config

View source: R/write_config.r

write_configR Documentation

Write TOML config

Description

This function will write a list as a TOML. This is not a fully fledged TOML writer and is used only for testing purposes.

Usage

write_config(x, file)

Arguments

x

a named list

file

path to file where TOML config will be written

Examples

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

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