Closed fontikar closed 8 months ago
My current work-around (inspired by @shandiya) is manually joining galah_
query "chunks" as a list
# Create my own data_request object
create_data_request <- function(taxa, years){
identify <- galah::galah_call() |>
galah::galah_identify(taxa)
filter <- galah::galah_filter(
spatiallyValid == TRUE,
species != "",
decimalLatitude != "",
year == years,
basisOfRecord == c("HUMAN_OBSERVATION", "PRESERVED_SPECIMEN")
)
select <- galah::galah_select(
recordID, species, genus, family, decimalLatitude, decimalLongitude,
coordinateUncertaintyInMeters, eventDate, datasetName, basisOfRecord,
references, institutionCode, recordedBy, outlierLayerCount, isDuplicateOf,sounds
)
identify$filter <- filter
identify$select <- select
return(identify)
}
# Set inputs
taxa = "Orthoptera"
years = seq(1923, 2023)
create_data_request(taxa, years) |> galah::atlas_counts()
#> # A tibble: 1 × 1
#> count
#> <int>
#> 1 55936
Created on 2023-09-21 with reprex v2.0.2
Hi Fonti! Thanks heaps for this, and good to hear that galah
is proving useful! We're working on the next release right now, and I think this has been solved already. That said, the next version isn't ready yet, so I don't have a fix that I can point you to immediately. Instead I'll put this on our work list and ping here with a solution once it's ready.
re: timelines, we should have something for you to try next week, and are aiming for release in a month or so. M
Describe the bug Hi
{galah}
team 👋 Firstly I want to say, I love{galah}
as an interface to GBIF nodes, I use it all the time for my work 😄 So much so, I wanted to build my own wrapper function around{galah}
functions so I don't have to type out the same query every time I was download an update of the data.My function looks like this: I have noted
galah
in my DESCRIPTION file to import various functions from galah.Unfortunately, my
query()
function returns a strange error 😞I've tried to do some digging in my reprex below:
galah version
galah_1.5.3
To Reproduce
Created on 2023-09-21 with reprex v2.0.2
Expected behaviour
Additional context it seems like the
data_request
object is not being passed fromgalah_identify
togalah_filter
andgalah_select
. I've cross posted this issue in my own repo here