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

Standardize map() when .f is an index rather than a function #359

Merged
merged 2 commits into from Jun 14, 2023

Conversation

rossellhayes
Copy link
Contributor

list <- list(
  c(1, 2),
  c("a", "b")
)

call <- quote(purrr::map(list, 2))

gradethis:::call_standardise_formals(call)
#> purrr::map(.x = list, .f = 2, .progress = FALSE)

Created on 2023-06-13 with reprex v2.0.2

Closes #358.

@rossellhayes rossellhayes added the bug Something isn't working label Jun 14, 2023
@rossellhayes rossellhayes self-assigned this Jun 14, 2023
@rossellhayes rossellhayes merged commit 373b2d2 into main Jun 14, 2023
11 of 12 checks passed
@rossellhayes rossellhayes deleted the fix/standardize-map-index branch June 14, 2023 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

call_standardise_formals() fails when calling map() with an index rather than a function
1 participant