ropensci / rfishbase

R interface to the fishbase.org database
https://docs.ropensci.org/rfishbase
111 stars 40 forks source link

No results or species not found for reproduction function #131

Closed fbsut1 closed 5 years ago

fbsut1 commented 7 years ago

Hi, I am trying to gather reproductive info from FishBase. A number of species have Reproduction pages on fishbase.org but the data cannot be called using rfishbase, either because no results could be found (e.g. species Squalus crassispinus, Allips concolor, Ahlia egmontis) or because the species cannot be found in the database (e.g. species Coptodon bythobates, Yarica hyalosoma). I tried to reinstall using devtools::install_github("ropensci/rfishbase", force = TRUE) and restarted R, still nothing. Any idea why rfishbase cannot access the data for some of these species? Thanks! Frieda

sckott commented 7 years ago

thanks for the report @fbsut1

it's possible that the fishbase site is running on a newer version of the underlying data than we are running on. will try to check on that soon

fbsut1 commented 7 years ago

Hi Scott, I'm not sure that the problem is what you mentioned above (i.e. fishbase site running on newer version), because some of the species and data entries that cannot be found by rfishbase are 10+ years old, and there are more recent entries that are successfully accessed by rfishbase. Anyway, let me know if you come up with anything. Thanks a bunch.

sckott commented 7 years ago

okay, thanks

sckott commented 6 years ago

@fbsut1 we now support multiple (=3) versions of fishbase database in the API https://github.com/ropensci/fishbaseapi#database-version but we still need to get support here for toggling versions, see https://github.com/ropensci/rfishbase/issues/134, coming soon - looks like this might fix your problem

cboettig commented 6 years ago

Hmm, seems all five of these species match fine in the 3.0 version.

#devtools::install_github("ropensci/rfishbase@3.0")
library(rfishbase)

 species(c("Coptodon bythobates", "Yarica hyalosoma",  "Squalus crassispinus", "Allips concolor", "Ahlia egmontis"))

not sure what is up on the current (2.1) version.