
Last chance! 50% off unlimited learning
Sale ends in
Google supports the following file types to be converted to a Google spreadsheet: .xls, .xlsx, .csv, .tsv, .txt, .tab, .xlsm, .xlt, .xltx, .xltm, .ods. The newly uploaded file will appear in your Google Sheets home screen. This function calls the Google Drive API.
gs_upload(file, sheet_title = NULL, verbose = TRUE, overwrite = FALSE)
path to the file to upload
the title of the spreadsheet; optional, if not specified then the name of the file will be used
logical; do you want informative messages?
whether to overwrite an existing Sheet with the same title
# NOT RUN {
write.csv(head(iris, 5), "iris.csv", row.names = FALSE)
iris_ss <- gs_upload("iris.csv")
iris_ss
gs_read(iris_ss)
file.remove("iris.csv")
gs_delete(iris_ss)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab