jennybc / googlesheets

Google Spreadsheets R API
Other
783 stars 191 forks source link

using googlesheets with Makefile workflow #396

Closed joepowers16 closed 5 years ago

joepowers16 commented 5 years ago

The googlesheets R package has been invaluable for my team's workflow, but I am unsure of how to automate the execution of R scripts after a prerequisite Google Sheet is updated. If the Google Sheet were a static csv file, then the use of a Makefile would be straightforward. Do you have advice about how (or plans to add a feature that would) integrate Google Sheets into a Makefile based workflow?

jennybc commented 5 years ago

A few things come to mind:

Also ...

Just so you know, googlesheets (this package) is being sunsetted very soon, in favour of a successor googlesheets4:

https://github.com/tidyverse/googlesheets4

Also, depending on what you're doing, a great deal of googlesheets's functionality (this package) can be accomplished with the already-released and actively-maintained googledrive package:

https://googledrive.tidyverse.org

Anything that operates at the whole file level can be done with googledrive and, even here, has always involved calls to the Drive API instead of Sheets.

So, in terms of developing your workflow, I recommend you look towards those packages as dependencies and not googlesheets.

The Sheets v3 API and therefore the original googlesheets package will go offline in March 2020:

https://github.com/tidyverse/googlesheets4/issues/45

joepowers16 commented 5 years ago

Thank you for such a prompt and thorough response. I will try implementing these changes in the coming week, and will post an update if that is helpful.