Coerces character to yamlet storage format. Named character is processed as a named list.
# S3 method for character
to_yamlet(x, ...)
character
ignored
length-one character
Other to_yamlet:
to_yamlet.NULL()
,
to_yamlet.default()
,
to_yamlet.list()
,
to_yamlet()
# NOT RUN {
to_yamlet('foo')
to_yamlet(c('a','b'))
to_yamlet(c(a = 'a',b = 'b'))
to_yamlet(c(no = 'n', yes = 'y'))
# }
Run the code above in your browser using DataLab