Decorates a list-like object. Takes metadata
in yamlet format and loads it onto corresponding
list elements as attributes.
Usage
# S3 method for list
decorate(
x,
meta = NULL,
...,
ext = getOption("yamlet_extension", ".yaml"),
overwrite = getOption("yamlet_overwrite", FALSE)
)
Arguments
x
object inheriting from list
meta
file path for corresponding yaml metadata, or a yamlet or something coercible to yamlet; an attempt will be made to guess the file path if x has a 'source' attribute (as for as.csv)