as_yamlet: Coerce to Yamlet

View source: R/yamlet.R

as_yamletR Documentation

Coerce to Yamlet

Description

Coerces something to yamlet format. If the object or user specifies default keys, these are applied. See as_yamlet.character.

Usage

as_yamlet(x, ...)

Arguments

x

object

...

passed arguments

Value

a named list

See Also

Other yamlet: [.yamlet(), as.character.yamlet(), as_yamlet.character(), as_yamlet.data.frame(), as_yamlet.list(), as_yamlet.yamlet(), as_yamlet.yam(), print.yamlet()

Examples

file <- system.file(package = 'yamlet', 'extdata','quinidine.yaml')
file
identical(as_yamlet(as_yam(file)), as_yamlet(file))

# Read yamlet from storage and apply default keys.
as_yamlet(file)


yamlet documentation built on Oct. 6, 2023, 9:07 a.m.