Repository navigation
Create download_file_linter() - #2882
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2882 +/- ##
=======================================
Coverage 99.26% 99.27%
=======================================
Files 127 128 +1
Lines 7115 7143 +28
=======================================
+ Hits 7063 7091 +28
Misses 52 52 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There are a few linters that do similar things you could consult, I'm not sure which is the simplest ( |
Thanks for the pointer! I knew something like I am now much happier with the result. Please let me know if you think this is moving in the right direction and I can add support for |
f686069 to
90a962f
Compare
| % Please edit documentation in R/download_file_linter.R | ||
| \name{download_file_linter} | ||
| \alias{download_file_linter} | ||
| \title{Recommend usage of a portable \code{mode} value in \code{\link[=download.file]{download.file()}}} |
There was a problem hiding this comment.
Somewhat unusual to see a link in a title, can't say I've come across that often...
In ~508K \title{} fields on CRAN, I see
Given that we also link it in \description{} below, and the [utils:download.file] qualification was apparently lost in the \title{}. let's drop that link in the \title{}.
MichaelChirico
left a comment
There was a problem hiding this comment.
Looking great! One minor revision needed.
Feel free to merge and handle the method= nuances as a follow-up.
Co-authored-by: Michael Chirico <[email protected]>
First attempt to fix #2866 (cc @maelle).
A potential improvement would be to not lint when
method = "wget"ormethod = "curl", asmodeis ignored in this situation according to?download.file.