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
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:
galah_config(email = Sys.getenv("ALA_EMAIL"),
username = Sys.getenv("GBIF_USER"),
password = Sys.getenv("GBIF_PWD"),
atlas = "Global")
african_ele_projfields <- galah_call() %>%
galah_identify("Loxodonta africana") %>%
galah_select(group = "basic", project_fields) %>%
atlas_occurrences()
Error in `all_of()`:
! Can't subset columns that don't exist.
✖ Columns `taxonConceptID`, `recordID`, and `dataResourceName` don't exist.
Run `rlang::last_error()` to see where the error occurred.
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!
The text was updated successfully, but these errors were encountered:
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 atlas
group = "assertions" passes to show_all_assertions()$id, which calls an API. So that changes depending on atlas as well
group = "media" and group = "event" are hard-coded, probably because we didn't get to them yet
So 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:
…n atlas = GBIF (#181)
Both `galah_select` and `select` now can be piped for GBIF without breaking, but do not modify the `galah_call()` object. They also give a message. Tests added for this behaviour
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!The text was updated successfully, but these errors were encountered: