-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix for many CRAN mirrors #64
base: main
Are you sure you want to change the base?
Conversation
This first commit address problem 1 in issue #63. Prior to this fix, we have:
After fixing we have:
This resolves the test in issue #63 for a large number of mirrors, but not all:
Coverage is now up from ~19% to ~36%. |
… URL>/package=<pkg>
This second commit address problem 2 in issue #63. Prior to this fix, we have:
However, clicking this link reveals the mirror does not redirect such URLs: https://cran.asia/package=mlmc. After fixing we have:
This full package URL is supported by the mirror, try clicking: https://cran.asia/web/packages/mlmc/index.html This resolves the test in issue #63 for nearly all mirrors:
Coverage is now up from ~19% (pre this PR) to ~97% following both commits. Investigations into the mirrors still failing revealed:
This means foghorn's forced use of SSL is the only real remaining problem from issue #63 and that only affects 2 mirrors (the third simply having an expired certificate). Therefore, if the maintainers are happy then I think merging this PR would resolve the issue I opened! Hope that helps, Louis |
Thanks for the fixes @louisaslett! I'm surprised that mirrors don't support the canonical URL format required by CRAN, but your fix makes sense. It would be great to add a test to make sure we account for these mirrors. Is it something you'd be able to do? Thanks again! |
Agreed, I was surprised too. Since writing the issue+PR, I spotted that the canonical URL format is listed under "Optional server configuration" on the CRAN Mirror FAQ, so it seems less than half of mirrors do this optional step sadly.
I'd be happy to have a go at putting some test together, though I'm not completely sure I understand. Do you mean have the |
This PR is to address problems 1 and 2 described in issue #63.
I will update this PR thread with the revised results of running the test given in the above issue.