Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

faoareas() not loading data #292

Open
k-holloway opened this issue Oct 18, 2024 · 1 comment
Open

faoareas() not loading data #292

k-holloway opened this issue Oct 18, 2024 · 1 comment

Comments

@k-holloway
Copy link

Session Info
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
Copy link
Member

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())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants