# NOT RUN {
# Create an example file to upload to our example project
write.csv(iris, file = "iris.csv")
project <- osf_create_project("Flower Data")
# Upload the first version
osf_upload(project,"iris.csv")
# Modify the data file, upload version 2, and view it on OSF
write.csv(subset(iris, Species != "setosa"), file = "iris.csv")
project %>%
osf_upload("iris.csv", overwrite = TRUE) %>%
osf_open()
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab