In galah 1.5.3, when attempting to use galah_group_by() and atlas_counts() to return counts grouped by multiple fields, a strange error can be returned occasionally, stating that the by argument has not been set correctly
library(galah)
# does not work
galah_call() |>
identify("Ericaceae") |>
filter(year > 2022) |>
group_by(el674, kingdom) |>
count()
#> Error: 'by' must be one of: limit_offset, page_perpage
However, this error does not occur if the order of fields in group_by() are swapped
In galah 1.5.3, when attempting to use
galah_group_by()
andatlas_counts()
to return counts grouped by multiple fields, a strange error can be returned occasionally, stating that theby
argument has not been set correctlyHowever, this error does not occur if the order of fields in
group_by()
are swappedor if
galah_identify()
is not present in the queryCreated on 2023-07-11 with reprex v2.0.2
My guess is that this could be the result of a small parsing error in an internal grouping function within
galah_group_by()
oratlas_counts()
?