# Read sample data from file.
file <- system.file(package = 'yamlet', 'extdata','quinidine.yaml')
file
as_yam(file)
# Read yamlet directly from character vector.
as_yam(c('ID:','TIME:'))
# Read from length-one character (same result).
as_yam('ID:\nTIME:')
Run the code above in your browser using DataLab