Skip to content
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

Merged
merged 5 commits into from
Jan 4, 2023
Merged

Clean lints in utils.R #342

merged 5 commits into from
Jan 4, 2023

Conversation

IndrajeetPatil
Copy link
Member

@codecov-commenter
Copy link

codecov-commenter commented Jan 3, 2023

Codecov Report

Merging #342 (49eaf29) into main (286e3f2) will decrease coverage by 0.09%.
The diff coverage is 30.00%.

@@            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     
Impacted Files Coverage Δ
R/utils.R 32.05% <30.00%> (-0.42%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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)
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

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.

@IndrajeetPatil IndrajeetPatil merged commit 2433e96 into main Jan 4, 2023
@IndrajeetPatil IndrajeetPatil deleted the clean_lints_apply branch January 4, 2023 17:18
IndrajeetPatil added a commit that referenced this pull request Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants