if (FALSE) { # interactive()
# write mtcars dataframe to mtcars.csv in data folder
cloud_s3_write(mtcars, "data/mtcars.csv")
cloud_s3_write(random_forest, "models/random_forest.rds")
# provide custom writing function with parameters
cloud_s3_write(c("one", "two"), "text/count.txt", writeLines, sep = "\n\n")
}
Run the code above in your browser using DataLab