Download Flight and Airport Data from Brazil
Overview
Download flight and airport data from Brazil’s Civil Aviation Agency (ANAC) https://www.gov.br/anac/pt-br. The data covers detailed information on aircraft, airports, and airport operations registered with ANAC. It also includes data on airfares, all international flights to and from Brazil, and domestic flights within the country.
- Minor changes:
- When the package tries to download multiples but fails with a few ones, the package now only try to download again the files that failed in the first attempt.
- The function
read_aircrafts()now throws an error, as it has been deprecated in favor ofread_aircraft()simply to fix a typo in the function name. The behavior and outputs are identical. read_airfares()andread_flights()now cache the list of dates/files available from ANAC to a session-scoped temp file, governed by the existingcacheparameter. This avoids re-scraping ANAC's website on every single call within the same R session.- Files are now downloaded using
httr2::req_perform_parallel(), replacingcurl::multi_download(). - Bug fixes:
- Fixed error in reading data from ANAC website. Fixed #52 and #51.
- Fixed the
selectparameter inread_airfares(), which was silently ignored and had no effect on the columns returned. It now behaves the same way asselectinread_flights(). - Fixed
get_airfares_dates_available()(used internally byread_airfares()) to retry requests to ANAC that fail transiently (timeouts, connection errors, HTTP 429/503) instead of silently dropping the affected year and returning an incomplete list of available dates. - Fixed
get_airfares_dates_available()andlatest_airfares_date()to fail cleanly withNULLwhen ANAC can't be reached, instead of occasionally producing a nonsensical "data available between Inf and -Inf" error, or-Infas a date. - Replaced a brittle hardcoded filename-length check (
nchar == 55) used to filter valid international airfare files listed by ANAC with an explicit filename-pattern check, and added the equivalent check to the domestic airfare listing (which previously had no filter at all). This guards against malformed, duplicate, or misplaced files that ANAC occasionally publishes (e.g. typo'd names, files uploaded to the wrong year, re-uploads with(1)appended) corrupting the list of available dates. - New contributors
Show all changes in 1.2.0Hide the rest of the changes in 1.2.0
- Arthur Bazolli
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 27 (19 internal)includes a package overview page
- Examples that run
- 0%23 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- Airport data HTML
- Flights data HTML
- Introduction to flightsbr HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 2
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
- github.com/ipeagit/flightsbr · last recorded on 2026-08-16
10 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/ipea/flightsbr on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-08-22 · The repository has a site deploy workflow
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-08-17Seen in the repository: CLAUDE.mdNamed in .Rbuildignore: .claude, CLAUDE.md
Dependencies
Installing flightsbr adds 42 packages (26 with compiled code, 32 MB of source tarballs). Heaviest: stringi 11 MB, data.table 5.7 MB, Rcpp 1.8 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.2.0Latest
- RR 4.6.0 released · 2026-04-24
- unarchivedReturned to CRAN2025-07-25
- 1.1.12025-07-25 · diff ↗
- archivedRemoved from CRAN2025-07-01requires archived package 'parzer'
- 1.1.02025-05-19 · diff ↗ ·
removed 1 export
get_aircrafts_dates_availableadded 2 exports
get_aircraft_dates_available, read_aircraft - RR 4.5.0 released · 2025-04-11
- 1.0.0
- 0.5.02024-09-18 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.4.12024-04-23 · diff ↗
- 0.4.0
- 0.3.02023-06-29 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.2.12022-11-27 · diff ↗
- 0.2.0
Show 6 earlier eventsHide 6 earlier events
- RR 4.2.0 released · 2022-04-22
- 0.1.22022-03-18 · diff ↗
- 0.1.12022-03-06 · diff ↗ ·
added 3 exports
check_date, get_airport_movement_dates_available, get_flight_dates_available - 0.1.02022-02-08 · diff ↗ ·
removed 1 export
pattern:^[[:alpha:]]+added 5 exports
latest_flights_date, read_aircrafts, read_airport_movements, read_airports, read_flights - 0.0.12022-01-21
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2022-01-21
- Total releases
- 14 / 4 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 1.9 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("flightsbr")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.31219/osf.io/jdv7u.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.