Skip to contents

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())
#> [xml]
#> chunk = "<xml>{{tag}}</xml>"
#> 
#> [templates]
#> 
#> [defaults]
#> tag = "Just another tag in the wall!"
#>