Download Data from the FAOSTAT Database
Overview
Download Data from the FAOSTAT Database of the Food and Agricultural Organization (FAO) of the United Nations. A list of functions to download statistics from FAOSTAT (database of the FAO https://www.fao.org/faostat/) and WDI (database of the World Bank https://data.worldbank.org/), and to perform some harmonization operations.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-04
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 34 (2 internal)includes a package overview page
- Examples that run
- 53%9 run in a plain check · 4 never run · 4 hold no code
- Exported functions with examples
- 61%
- Documented parameters
- 97%
- Return-value docs
- 50%
- Help pages citing references
- 0%
Also includes 1 demo script (run with demo())
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- GitHub only
- Median days to close, 50 most recently updated closed PRs
- GitHub only
Checks run against gitlab.com/paulrougieux/faostatpackage on 2026-10-21.
No development-tooling practices detected in the upstream repository.
Dependencies
Installing FAOSTAT adds 16 packages (13 with compiled code, 12 MB of source tarballs). Heaviest: data.table 5.7 MB, Rcpp 1.8 MB, openssl 1.1 MB.
Code & Tests
Datasets
People & History
Maintainer since 2.1.1 (2020), previously Filippo Gheri (1.9 to 2.0) and Michael C. J. Kao (1.1 to 1.6)
Show 3 peopleHide 3 people
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.4.2Latest2026-04-01 · current release · diff ↗ ·
added 3 exports
faostat_login, get_faostat_bulk_api, get_faostat_bulk_url - RR 4.5.0 released · 2025-04-11
- 2.4.02024-05-22 · diff ↗
- unarchivedReturned to CRAN2024-05-02
- 2.3.12024-05-02 · diff ↗
- RR 4.4.0 released · 2024-04-24
- archivedRemoved from CRAN2024-04-20issues were not corrected despite reminders
- RR 4.3.0 released · 2023-04-21
- 2.3.02023-03-30 · diff ↗ ·
removed 2 exports
FAOcheck, getFAOtoSYBadded 8 exports
change_case, check_country_overlap, read_bulk_metadata, read_dataset_dimension, read_dimension_metadata, read_fao, search_dataset, translate_countrycodes - 2.2.42023-02-14 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 2.2.32022-01-05 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 2.2.1
- RR 4.0.0 released · 2020-04-24
Show 16 earlier eventsHide 16 earlier events
- 2.1.22020-04-06 · diff ↗
- 2.1.1
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- 2.02015-06-02 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 1.92014-10-28 · diff ↗ ·
removed 6 exports
aggCountry, aggRegion, dataDensity, sparsity, sparsityHeatMap, tsPaneladded 3 exports
Aggregation, scaleUnit, translateUnit - RR 3.1.0 released · 2014-04-10
- 1.62014-03-14 · diff ↗
- 1.42013-05-30 · diff ↗
- 1.3
- RR 3.0.0 released · 2013-04-03
- 1.12013-02-01
- RR 2.15.0 released · 2012-03-30
Package metadata
- First published
- 2013-02-01
- Total releases
- 15 / 13 yrs
- License
- GPL (>= 2) OSI
- Bundled data
- 58 KB / 3 files
- Download size
- 307 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("FAOSTAT")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.