R Interface to 'FishBase'
Overview
A programmatic interface to 'FishBase', re-written based on an accompanying 'RESTful' API. Access tables describing over 30,000 species of fish, their biology, ecology, morphology, and more. This package also supports experimental access to 'SeaLifeBase' data, which contains nearly 200,000 species records for all types of aquatic life not covered by 'FishBase.'
fb_tbl() now gives a clear error message when an unrecognized table name is
requested, directing users to fb_tables(). Previously this produced a cryptic
"missing value where TRUE/FALSE needed" error (fix for #320).
common_to_sci() now correctly filters by the Language argument. Previously
the argument was accepted but ignored, silently returning English results
regardless of the language specified (fix for #275).
Documentation for length_length() now clarifies the counterintuitive column
naming convention: Length1 is the unknown (predicted) length and Length2
is the known (predictor), so the formula is Length1 = a + b * Length2
(fix for #290).
fb_tbl() now handles tables with embedded null bytes in string columns
by dropping the affected column(s) with a warning rather than failing entirely.
Show all changes in 5.0.3Hide the rest of the changes in 5.0.3
This fixes ecosystem() and species_by_ecosystem() with
server = "sealifebase" (fix for #302).
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-29
- ERROR12 OK, 1 ERROR2026-09-04
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
Show 6 earlier changesHide 6 earlier changes
- ERROR12 OK, 1 ERROR2026-06-07
- OK13 OK2026-05-24
- ERROR12 OK, 1 ERROR2026-05-17
- OK13 OK2026-05-15
- ERROR12 OK, 1 ERROR2026-05-13
- OK14 OK2026-03-10
Documentation
- Help pages
- 48 (1 internal)
- Examples that run
- 14%6 run in a plain check (6 of them under a condition) · 2 only when donttest examples are enabled (R CMD check --as-cran) · 34 never run
- Exported functions with examples
- 91%
- Documented parameters
- 100%
- Return-value docs
- 82%
- Help pages citing references
- 25%
Downloads
Repository
- PRs merged (all time)
- 88%
- Median days to close, 50 most recently updated closed issues
- 414
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
15 development-tooling and community-health practices detected across 8 families in the upstream repository
Checks run against github.com/ropensci/rfishbase on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2019-09-24
Show all practicesHide 4 practices
Dependencies
Installing rfishbase adds 30 packages (17 with compiled code, 29 MB of source tarballs). Heaviest: stringi 11 MB, duckdb 7.9 MB, fs 1.4 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 5.0.3Latest
- 5.0.22025-12-17 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 5.0.12025-01-12 · diff ↗
- 5.0.02024-09-02 · diff ↗ ·
removed 9 exports
db_dir, db_disconnect, distribution, docs, fb_conn, fb_import, fishbase_pane, occurrence, species_list - RR 4.4.0 released · 2024-04-24
- 4.1.22023-06-03 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 4.1.12023-02-20 · diff ↗
- 4.1.0
- RR 4.2.0 released · 2022-04-22
- 4.0.02021-12-14 · diff ↗ ·
removed 3 exports
db_delete, default_db, list_fieldsadded 5 exports
db_dir, fb_import, fb_tables, fb_tbl, fishbase_pane - 3.1.10
- 3.1.92021-08-09 · diff ↗
- 3.1.82021-06-07 · diff ↗
Show 32 earlier eventsHide 32 earlier events
- RR 4.1.0 released · 2021-05-18
- 3.1.72021-04-08 · diff ↗
- 3.1.62021-02-10 · diff ↗
- 3.1.52021-01-18 · diff ↗
- 3.1.42021-01-13 · diff ↗ ·
removed 2 exports
clear_cache, taxonomyadded 2 exports
default_db, species_by_ecosystem - RR 4.0.0 released · 2020-04-24
- 3.0.4
- RR 3.6.0 released · 2019-04-26
- 3.0.3
- 3.0.12019-03-02 · diff ↗
- 3.0.0.12019-03-01 · diff ↗
- 3.0.02018-11-09 · diff ↗ ·
removed 4 exports
commonnames, heartbeat, ping, speciesnamesadded 5 exports
%>%, brains, estimate, genetics, taxonomy - RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- 2.1.2
- 2.1.1
- RR 3.3.0 released · 2016-05-03
- 2.1.02015-11-10 · diff ↗
- 2.0.32015-09-09 · diff ↗
- 2.0.22015-09-02 · diff ↗
- 2.0.12015-08-15 · diff ↗ ·
removed 15 exports
findSpecies, fish_names, getDepth, getEnviroClimateRange, getIds, getLengthWeight, getMetabolism, getPictures, getQuantTraits, getRefs, getSize, getTrophicLevel, loadCache, updateCache, which_fishadded 44 exports
common_names, common_to_sci, commonnames, diet, distribution, docs, ecology, ecosystem, faoareas, fecundity, fooditems, heartbeat, introductions, length_freq, length_length, length_weight, list_fields, load_taxa, maturity, morphology, morphometrics, occurrence, oxygen, ping, popchar, popgrowth, poplf, popll, poplw, popqb and 14 more - RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 0.2-22014-01-07 · diff ↗ ·
added 6 exports
getEnviroClimateRange, getIds, getLengthWeight, getMetabolism, getPictures, getTrophicLevel - RR 3.0.0 released · 2013-04-03
- 0.2-12013-02-14 · diff ↗
- 0.0-92012-05-15 · diff ↗ ·
removed 2 exports
familySearch, habitatSearchadded 3 exports
getRefs, loadCache, updateCache - 0.0-82012-04-03 · diff ↗
- RR 2.15.0 released · 2012-03-30
- RR 2.14.0 released · 2011-10-31
- 0.0-72011-10-26
- RR 2.13.0 released · 2011-04-13
Package metadata
- First published
- 2011-10-26
- Total releases
- 31 / 15 yrs
- License
- CC0 · relicensed from BSD in 0.0-9
- Minimum R
- ≥ 4.1.0
- Download size
- 601 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("rfishbase")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1111/j.1095-8649.2012.03464.x.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.