Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Function to upload local csv to new google sheet #54

Closed
jennybc opened this issue Mar 21, 2015 · 4 comments
Closed

Function to upload local csv to new google sheet #54

jennybc opened this issue Mar 21, 2015 · 4 comments

Comments

@jennybc
Copy link
Owner

jennybc commented Mar 21, 2015

From #1, which was about a different thing, but accumulated some good links about this.

@leeper pointed out this: uploading using the Drive API (specifically the file insert endpoint, using the convert = true argument)

More links I found:

http://stackoverflow.com/questions/12765813/upload-csv-to-google-drive-spreadsheet-using-drive-v2-api

https://developers.google.com/drive/v2/reference/files/insert

@jennybc
Copy link
Owner Author

jennybc commented Mar 21, 2015

Done via b707de5

@jennybc jennybc closed this as completed Mar 21, 2015
@yeedle
Copy link

yeedle commented Sep 19, 2017

Is it possible to extend this to upload a dataframe directly to google sheets? Perhaps by invisibly writing dataframe to disk, uploading file to googlesheets, and then invisibly remove file from disk. I often find myself writing dfs to disk and deleting them afterwards just so that I can upload them via gs_upload

@jennybc
Copy link
Owner Author

jennybc commented Sep 19, 2017

gs_new() can put an existing R object into a new Sheet.

https://cran.r-project.org/web/packages/googlesheets/vignettes/basic-usage.html#create-a-new-google-sheet

@yeedle
Copy link

yeedle commented Sep 19, 2017

Completely missed that 🙈

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants