We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i.e. only recycle vectors of length 1.
Problems include at least:
purrr:::recycle_args(list(1, integer(0))) #> Error in purrr:::recycle_args(list(1, integer(0))): all(lengths == 1L | lengths == n) is not TRUE purrr::map2(integer(0), 1:2, list) #> list() purrr::pmap(list(integer(0), 1:2), list) #> list()
Created on 2022-08-24 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered:
map2
.y
Make sure to also test that data frames are correctly recycled:
purrr::modify2(data.frame(x = 1), 1:2, ~ .)
Sorry, something went wrong.
And
library(purrr) x <- list(x = 10, y = 20) names(imodify(x[1:2], \(x, y) x * 2)) #> [1] "x" "y" names(imodify(x[1], \(x, y) x * 2)) #> NULL
Created on 2022-08-27 by the reprex package (v2.0.1)
Use tidyverse recycling rules
1cb018f
Fixes #878
a118aec
Successfully merging a pull request may close this issue.
i.e. only recycle vectors of length 1.
Problems include at least:
Created on 2022-08-24 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: