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
However, downstream in this function there are calls to the function taxadb::taxa_tbl() which has the default argument ofs:
taxa_tbl(
provider = getOption("taxadb_default_provider", "itis"),
schema = c("dwc", "common"),
version = latest_version(),
db = td_connect()
)
When latest_version() != db_version, bdc_query_names_taxadb() says that all species names were not found in the DB. This can be illustrated with the iucn database (hardcoded to 2019, but the 2022 version is available).
test <- bdc::bdc_query_names_taxadb(
sci_name = "Sus scrofa",
db = "iucn"
)
test
data.frame(test)
original_search suggested_name distance notes taxonID
1 Sus scrofa NA NA notFound <NA>
scientificName taxonRank acceptedNameUsageID taxonomicStatus
1 <NA> <NA> <NA> <NA>
kingdom phylum class order family genus specificEpithet
1 <NA> <NA> <NA> <NA> <NA> <NA> <NA>
vernacularName infraspecificEpithet
1 <NA> <NA>
I'm working off the GitHub installation of bdc
The text was updated successfully, but these errors were encountered:
When omitted, the default value is `taxadb::latest_version`; which is
the opposite of what we want since we have the fixed versions of the
databases.
Related to #228.
We're aware of the latest version of the IUCN database. However, {taxadb} cannot return the latest version in a fit-for-use way yet (see here). That's the only reason to keep the hard-coded database versions.
Databases are hardcoded for a while in the new bdc release, and the following databases are not available: "tpl", "fb", "slb", "wd", and "iucn". I'm closing this issue due to inactivity. Please feel free to reopen it whenever you need to.
The ``bdc_query_names_taxadb()` function hardcodes database versions here:
bdc/R/bdc_query_names_taxadb.R
Lines 210 to 237 in 3121582
However, downstream in this function there are calls to the function
taxadb::taxa_tbl()
which has the default argument ofs:When
latest_version() != db_version,
bdc_query_names_taxadb() says that all species names were not found in the DB. This can be illustrated with the iucn database (hardcoded to 2019, but the 2022 version is available).I'm working off the GitHub installation of
bdc
The text was updated successfully, but these errors were encountered: