Closed khaosn closed 2 years ago
Hi, I recently updated rfishbase and some of my old code I used to retrive taxonomic information (order, family, subfamly, genus) ceased to work, e.g.
library(rfishbase) fishbase[which(fishbase$Genus=="Calotomus"),]
producing the error Error: object 'fishbase' not found This worked fine before and I thought, based on the vignette, that this had been retained.
Session Info
R version 4.1.2 (2021-11-01) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 22000) Matrix products: default locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C LC_TIME=English_United States.1252 system code page: 1255 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_4.1.2 tools_4.1.2
see #240 , the function you want is load_taxa(). e.g.
load_taxa()
fishbase <- load_taxa() fishbase[fishbase$Genus=="Calotomus",]
Hi, I recently updated rfishbase and some of my old code I used to retrive taxonomic information (order, family, subfamly, genus) ceased to work, e.g.
producing the error Error: object 'fishbase' not found This worked fine before and I thought, based on the vignette, that this had been retained.
Session Info