AtlasOfLivingAustralia / galah-R

Query living atlases from R
https://galah.ala.org.au
39 stars 3 forks source link

`select_filters()` incompatible with `data.table` #98

Closed daxkellie closed 2 years ago

daxkellie commented 2 years ago

On the ala_counts branch, select_filters() does not build a data frame correctly after loading the data.table package to the user library

# remotes::install_github("AtlasOfLivingAustralia/galah@ala_counts")
library(galah)
select_filters(year > 2010)
#>   variable logical value                               query
#> 1     year       >  2010 year:[2010 TO *] AND -(year:"2010")

library(data.table)
select_filters(year > 2010)
#> Error in as.character(replacement): cannot coerce type 'closure' to vector of type 'character'

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