You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
code_feedback() should ignore argument names of anonymous functions #287
code_feedback() alerts the user to differences in the argument names of anonymous functions. Is it possible to ignore this?
library(gradethis)
.user_code<-"map(data, function(x) is.na(x))".solution_code<-"map(data, function(y) is.na(y))"
code_feedback()
#> In `function(x)`, I expected argument `y` where you wrote argument `x`.
.user_code<-"map(data, function(x) is.na(x))".solution_code<-"map(data, ~ is.na(.x))"
code_feedback()
#> In `map(data, function(x) is.na(x))`, I expected you to call ``~`()` where you called `function() NULL`.
Activity
gadenbuie commentedon Feb 16, 2022
Even worse