gradethis icon indicating copy to clipboard operation
gradethis copied to clipboard

`code_feedback()` gives misleading message when an infix operator is replaced with a comma

Open rossellhayes opened this issue 4 years ago • 0 comments

library(gradethis)

.solution_code <- 'select(starts_with("a") | ends_with("b"))'
.user_code     <- 'select(starts_with("a"),  ends_with("b"))'
code_feedback()
#> I did not expect your call to `select()` to include `ends_with()`. You may have included an unnecessary argument, or you may have left out or misspelled an important argument name.

Created on 2021-11-24 by the reprex package (v2.0.1)

rossellhayes avatar Nov 24 '21 17:11 rossellhayes