View source: R/googledrive_csv.R
googledrive_csv | R Documentation |
This function uploads a data.frame as a CSV file to Google Drive. If the
name of the spreadsheet exists already, then it gets updated. Otherwise
it uploads it for the first time. Unlike using
drive_upload(overwrite = TRUE)
directly, this function allows you to
keep the sharing and publishing settings of a spreadsheet if it exists
already.
googledrive_csv(df, sheet_name)
df |
A |
sheet_name |
A |
A one row table with the googledrive
information for the file
that was uploaded.
Leonardo Collado-Torres
if (googledrive::drive_has_token()) {
## You'll need to have access to Google Drive through
## googledrive::drive_auth() set up.
## Upload a table to google drive
googledrive_csv(mtcars, paste(Sys.Date(), "jaffelab::googledrive_csv() example"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.