Skip to content

helper for preparing URLs for use_course()#821

Merged
jennybc merged 13 commits intor-lib:masterfrom
fmichonneau:gd-instructions
Mar 19, 2020
Merged

helper for preparing URLs for use_course()#821
jennybc merged 13 commits intor-lib:masterfrom
fmichonneau:gd-instructions

Conversation

@fmichonneau
Copy link
Contributor

@fmichonneau fmichonneau commented Jul 8, 2019

Closes #406

@batpigandme batpigandme added the tidy-dev-day 🤓 Tidyverse Developer Day label Jul 8, 2019
from the URLs that Google Drive and GitHub provide from their websites
Copy link
Member

@jennybc jennybc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I made a few small comments or mini-changes.

Can you add a test with expectations for DropBox, Google Drive, and a URL that matches neither regex?

Do you want to change the title of the PR to better reflect what it became, i.e. a helper for preparing URLs for use_course()?

We need to deal with the matter of exporting this helper (or not).

R/course.R Outdated
#' **Google Drive:**
#'
#' It looks like it's not possible to directly share as a ZIP file the content
#' of a folder storred in Google Drive. It is however possible to share a ZIP
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bummer. I really thought this was possible, but from my own searching, I agree there doesn't seem to be a workflow that is comparable to what we have for DropBox or GitHub.

@hadley
Copy link
Member

hadley commented Oct 16, 2019

@fmichonneau are you interested in finishing this off?

@fmichonneau
Copy link
Contributor Author

yes, I'm interested in finishing this. I'll get to it in the next few days. Thanks for the reminder.

fmichonneau and others added 3 commits November 1, 2019 18:18
Copy link
Contributor Author

@fmichonneau fmichonneau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jennybc I included the changes you suggested and added the tests. While testing this, I realized there was a different format that Google Drive would sometimes use when generating URLs for sharing that I tried to include here. I'm sure the regex can be improved 😩

I exported it but looking more at the code for the other functions included here, I'm not sure it's the right call. Let me know what you think. Thanks!

@fmichonneau fmichonneau changed the title add instructions for Google drive direct download helper for preparing URLs for use_course() Nov 2, 2019
@hadley
Copy link
Member

hadley commented Mar 13, 2020

@jennybc I think this is good to merge, but needs final approval from you.

@hadley
Copy link
Member

hadley commented Mar 14, 2020

I think this fixes #406?

@jennybc
Copy link
Member

jennybc commented Mar 19, 2020

Thanks!

@jennybc jennybc merged commit 1f8b269 into r-lib:master Mar 19, 2020
@fmichonneau
Copy link
Contributor Author

thank you both for polishing and merging this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tidy-dev-day 🤓 Tidyverse Developer Day

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helper for constructing links suitable for use_course()

4 participants