save_yaml: Write named list to file

View source: R/yaml.R

save_yamlR Documentation

Write named list to file

Description

Write named list to file

Usage

save_yaml(x, file, ..., sorted = FALSE)

Arguments

x

a named list, fastmap2, or anything that can be transformed into named list via as.list

file, ...

passed to write_yaml

sorted

whether to sort the results by name; default is false

Value

Normalized file path

See Also

fastmap2, load_yaml, read_yaml, write_yaml

Examples



x <- list(a = 1, b = 2)
f <- tempfile()

save_yaml(x, f)

load_yaml(f)

map <- dipsaus::fastmap2(missing_default = NA)
map$c <- 'lol'
load_yaml(f, map = map)

map$a
map$d



raveio documentation built on July 26, 2023, 5:29 p.m.