if (FALSE) {
# writing to a file connection
filename <- tempfile()
con <- file(filename, "w")
write_yaml(data.frame(a=1:10, b=letters[1:10], c=11:20), con)
close(con)
# using a filename to specify output file
write_yaml(data.frame(a=1:10, b=letters[1:10], c=11:20), filename)
}
Run the code above in your browser using DataLab