ropensci / rfishbase

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

faoareas() not loading data #292

Open k-holloway opened 1 month ago

k-holloway commented 1 month ago
Session Info ```r ```

When I run faoareas() the resulting table has no data. It has column titles, but otherwise is completely blank. My code worked fine a few months ago, and I haven't made any edits to it since. I've tried re-downloading R and R Studio, checking that they are both up to date, using the most up to date version of rfishbase, using the version of rfishbase that I used a few months ago, nothing seems to be working. It is also running on my co-worker's computer.

install.packages("rfishbase") library("rfishbase") Sys.setenv(FISHBASE_VERSION="23.01")

fishbase<-load_taxa()

I get this back when I run it: Joining with by = join_by(Subfamily, GenCode, FamCode) Joining with by = join_by(FamCode) Joining with by = join_by(Order, Ordnum, Class, ClassNum) Joining with by = join_by(Class, ClassNum) Joining with by = join_by(SpecCode)

And then the table is totally blank. Any suggestions?

cboettig commented 1 month ago

Thanks for the report!

For now please try accessing the areas table directly, e.g. by:

fb_tbl("faoareas", version = "23.01")

You can manually join this to the load_taxa() table if you want to work with species names rather than SpecCode for individual species.,

library(dplyr)
fb_tbl("faoareas", version = "23.01") |> inner_join(taxa_tbl())