Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function drive_create() for creating blank files #258

Merged
merged 2 commits into from
Jul 23, 2019

Conversation

ianmcook
Copy link
Contributor

@ianmcook ianmcook commented Jun 7, 2019

I was recently using this package to create some blank Google Docs, like this:

system("touch emptyfile")
drive_upload("emptyfile", type = "document", ... )

But I thought it'd be better if the package had a proper way to create blank files, so I implemented it here for your consideration. Thank you!

@jennybc
Copy link
Member

jennybc commented Jul 23, 2019

I'm curious: what do you use these empty documents for?

@jennybc
Copy link
Member

jennybc commented Jul 23, 2019

Thanks! I'm going to merge this and then massage it some more. In particular, drive_mkdir() just becomes a very thin wrapper around this.

@jennybc
Copy link
Member

jennybc commented Jul 23, 2019

I will add a NEWS bullet as well.

@jennybc jennybc merged commit 61a98c1 into tidyverse:master Jul 23, 2019
@ianmcook
Copy link
Contributor Author

Thanks! Regarding why I need to create many empty documents: I work with colleagues to build training courses containing many short videos and readings. We use Google Docs to author the video scripts and readings (because we need collaborative real-time editing). We first create a master course outline in a Google Sheet, then create separate empty Google Docs for all the videos and readings, then link from the master Sheet to every Doc, then finally do the authoring and editing in the Docs. It saves us many hours to automate the creation, naming, and linking of all those empty Google Docs, and googledrive and googlesheets4 have been invaluable for this. Thank you!

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

Successfully merging this pull request may close these issues.

2 participants