Open rossellhayes opened 1 year ago
solution
submitted
mean()
(x + y)/2
+
*
Closes #84.
[x] Consider #225
[ ] Consider #272
[ ] Fix handling of chained infixes
user <- "sqrt(1 + 2)" solution <- "sqrt(1 + 2 + 3)" code_feedback(user, solution) #> In `1 + 2`, I expected `1 + 2` where you wrote `1`.
[ ] Don't reveal the contents of functions that are infix arguments
user <- "b(1)" solution <- "b(1) + 2" code_feedback(user, solution) #> I expected you to call `b(1) + 2` where you called `b()`.
[ ] Investigate how we give feedback on the base pipe (|>)
|>
[ ] Improve handling of repeated operators (e.g. !!, !!! and {{ }})
!!
!!!
{{ }}
Created on 2023-02-16 with reprex v2.0.2
All committers have signed the CLA.
solution
orsubmitted
is an infix, provide the whole context,mean()
where you called(x + y)/2
."solution
andsubmitted
are infixes, provide jus the operator,+
where you called*
."Closes #84.
TODO
[x] Consider #225
[ ] Consider #272
[ ] Fix handling of chained infixes
[ ] Don't reveal the contents of functions that are infix arguments
[ ] Investigate how we give feedback on the base pipe (
|>
)[ ] Improve handling of repeated operators (e.g.
!!
,!!!
and{{ }}
)Created on 2023-02-16 with reprex v2.0.2