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