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

put a data.frame into a Google spreadsheet #1

Closed
jennybc opened this issue Dec 12, 2014 · 3 comments
Closed

put a data.frame into a Google spreadsheet #1

jennybc opened this issue Dec 12, 2014 · 3 comments

Comments

@jennybc
Copy link
Owner

jennybc commented Dec 12, 2014

Was reading the wee bit there is about Pandas and gspread …

burnash/gspread#138

https://github.com/burnash/gspread/wiki/Cookbook

Brings up the interesting issue of … going from an R data.frame TO a Google spreadsheet. Not writing to just one cell but a bulk write.

@leeper
Copy link

leeper commented Dec 18, 2014

Perhaps the best way to handle that is saving the dataframe to a file and then uploading using the Drive API (specifically the file insert endpoint, using the convert = true argument).

If the Drive API had its own package, it would be easy to then import the upload/insert function from there.

@jennybc
Copy link
Owner Author

jennybc commented Feb 19, 2015

Was reminded of this while reviewing the PR to restore ability to create a new (empty) spreadsheet (#29). I'm not sure if there's much use for creating an empty spreadsheet? But perhaps there is. I think more common use case would be creating a new spreadsheet AND populating it with data.

Just adding some links for when/if we pursue. Agree with @leeper's assessment of the situation.

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

In 9ead0d2 we (re)gained the ability to upload a data.frame into cells in a sheet.

Making a new issue for "upload csv".

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

No branches or pull requests

2 participants