James-Thorson-NOAA / FishLife

Estimate fish traits for all marine fish species globally
https://james-thorson-noaa.github.io/FishLife/
GNU General Public License v3.0
45 stars 12 forks source link

Search_species() can't find rfishbase::fishbase, apparently due to change in rfishbase V. 4.0.0 #20

Open nikolaifish opened 2 years ago

nikolaifish commented 2 years ago

Hi Jim,

I was trying to run some FishLife code today and got an error when I try to run Search_species

taxa_i <- Search_species(Genus=genus_i,Species=species_i)$match_taxonomy Error: 'fishbase' is not an exported object from 'namespace:rfishbase'

It looks like the 'fishbase' table is not available by that name in rfishbase V. 4.0.0 but can still be accessed by running rfishbase::load_taxa()

See link below: https://github.com/ropensci/rfishbase/issues/243

Nikolai