-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Clean lints in utils.R #342
Conversation
Codecov Report
@@ Coverage Diff @@
## main #342 +/- ##
==========================================
- Coverage 30.84% 30.74% -0.10%
==========================================
Files 8 8
Lines 308 309 +1
==========================================
Hits 95 95
- Misses 213 214 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This reverts commit cb4c0ff.
R/utils.R
Outdated
@@ -13,12 +13,12 @@ | |||
cran_version <- lapply(pkgs[pkg_deps, "Version"], package_version) | |||
local_version <- lapply(pkg_deps, utils::packageVersion) | |||
|
|||
behind <- mapply(">", cran_version, local_version) | |||
behind <- Map(">", cran_version, local_version) |
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.
Does Map()
return a vector or a list by default?
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.
Yes, it always returns a list, and doesn't try to simplify the results.
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.
But mapply()
returns a vector, no? So I'm not sure you need to unlist here.
#334