if (FALSE) {
# reading from a file connection
filename <- tempfile()
cat("test: data\n", file = filename)
con <- file(filename, "r")
read_yaml(con)
close(con)
# using a filename to specify input file
read_yaml(filename)
}
# reading from a character vector
read_yaml(text="- hey\n- hi\n- hello")
Run the code above in your browser using DataLab