-
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
download_zenodo(): use curl::multi_download() for parallel = TRUE; add unit tests #124
Conversation
@hansvancalster Two errors from {checklist} should now be fixed (a linter and the package version). However the other two errors seem false positives to me.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I tested the new functionality and it works as expected!
I would however prefer a less stringent unit test that does not rely on a snapshot, but rather just check with expect_no_error()
and expect_no_warning()
. My comment below shows that snapshots may be a bit brittle.
I think you should run
If you remove the snapshot (as I suggest above) this will no longer be an issue. |
@hansvancalster I relaxed the unit tests as requested.
I'm using latest versions. I cannot reproduce the GHA checklist error locally. Output from
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I pushed an update to hopefully let checklist pass.
Yes, but a next round will rewrite the Rd file to its checklist-incompatible state (although note that I don't get the error from checklist as in GHA): > checklist::check_documentation()
ℹ Updating inborutils documentation
ℹ Loading inborutils
Writing convertdf_enc.Rd |
Not on my machine... So something is different. I wonder if it has something to do with different way in capitalization on linux vs windows. The change in a8781bf is just changing 'a' to 'A'. |
I know 🙂 . |
Documentation mystery - could be just this:
Supposing the change in |
This approach is faster than forking the R process, by using the libcurl facilities instead to do concurrent downloading of multiple files.
This PR also flips the default value for the
parallel
argument fromFALSE
toTRUE
.Also copying the unit tests from {n2khab} package in order to capture problems early-on.