Open fontikar opened 1 year ago
OK this is an interesting one. Basically, when galah_select()
is called with a group
argument, it is passed to preset_cols
(here), which behaves differently depending on which group is chosen:
group = "basic"
: passed to default_columns()
(here), which does vary depending on atlasgroup = "assertions"
passes to show_all_assertions()$id
, which calls an API. So that changes depending on atlas
as wellgroup = "media"
and group = "event"
are hard-coded, probably because we didn't get to them yetSo an obvious action is to update galah_select()
to give better results for different atlases when group
is either media
or event
. This might require some care, as not every atlas appears to have an image service.
More important for this specific query is how to use galah_select()
for GBIF. My reading of the GBIF API docs is that selecting columns isn't possible from GBIF, in which case we need to:
Hey folks, I’ve been loving my tinkering with GBIF with {galah}, its soooo good that you don’t have to learn different syntax just to get data out from a non-ALA altas. This is a super minor suggestion and happy to help with this if you need.
I created the following query and had assumed that
group =
options would be transferrable to different atlases, but then get the error:It makes sense that not all fields are consistent across atlases. Perhaps this needs to be reflected in the galah_select help file/error message and other documentation, or in the future, we can create the same
group =
options for other atlases but this might be tricky really fast!