Skip to content

code_feedback() should ignore argument names of anonymous functions #287

@rossellhayes

Description

@rossellhayes

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`.

Created on 2022-02-16 by the reprex package (v2.0.1)

Metadata

Metadata

Labels

grade codeRelated to automatic code grading

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions