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
When an exercise includes multiple solutions, tblcheck compares .result to the last solution by default. This usually saves evaluation time, because we don’t need to test every solution if they all have the same value.
This can cause a problem with the new .by argument of summarize() introduced in dplyr 1.1.0. When calling summarize() after group_by(), the groups are sorted, but when calling summarize() with the .by argument, they're given in the order that they first appear in the data (like forcats::fct_inorder()) (https://www.tidyverse.org/blog/2023/02/dplyr-1-1-0-per-operation-grouping/#translating-from-group_by).
tblcheck should apply some logic to exercises with multiple solutions where one involves group_by() and one involves .by so that differences in row order don’t cause a problem.
The text was updated successfully, but these errors were encountered:
When an exercise includes multiple solutions, tblcheck compares
.result
to the last solution by default. This usually saves evaluation time, because we don’t need to test every solution if they all have the same value.This can cause a problem with the new
.by
argument ofsummarize()
introduced in dplyr 1.1.0. When callingsummarize()
aftergroup_by()
, the groups are sorted, but when callingsummarize()
with the.by
argument, they're given in the order that they first appear in the data (likeforcats::fct_inorder()
) (https://www.tidyverse.org/blog/2023/02/dplyr-1-1-0-per-operation-grouping/#translating-from-group_by).tblcheck should apply some logic to exercises with multiple solutions where one involves
group_by()
and one involves.by
so that differences in row order don’t cause a problem.The text was updated successfully, but these errors were encountered: