Skip to content

flightsbr

1.2.0Package record

Download Flight and Airport Data from Brazil

0packages depend
4.8Kdownloads / year
92.3%test coverage
13/13flavors OK

Overview

About
Maintained by Rafael H. M. PereiraCRAN page ↗GitHub ↗Website ↗Issues ↗Declared funder: Ipea - Institute for Applied Economic Research

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.

Changes in 1.2.0
  • 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 of read_aircraft() simply to fix a typo in the function name. The behavior and outputs are identical.
  • read_airfares() and read_flights() now cache the list of dates/files available from ANAC to a session-scoped temp file, governed by the existing cache parameter. 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(), replacing curl::multi_download().
  • Bug fixes:
  • Fixed error in reading data from ANAC website. Fixed #52 and #51.
  • Fixed the select parameter in read_airfares(), which was silently ignored and had no effect on the columns returned. It now behaves the same way as select in read_flights().
  • Fixed get_airfares_dates_available() (used internally by read_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() and latest_airfares_date() to fail cleanly with NULL when ANAC can't be reached, instead of occasionally producing a nonsensical "data available between Inf and -Inf" error, or -Inf as 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

CRAN checks
13OK
Slowest check: 1.3 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.2.0
READMEYes · 302 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 1.2.0Citation fileYes · cites a publicationWebsiteYes · pkgdown
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%

Downloads

4.8K
CRAN downloads in the past year
Rank #6,469 · ~13/day · ~399/mo
Daily download trend is not available in this view yet.
50230 days
1.3K90 days
4.8K1 year
Compare downloads with other packages →
Also on435 r2u6 autocran

Repository

44Stars
9Forks
4Open issues
0Open PRs
13Releases
306Commits
3Commit identities
rstatsdatarstats-packageaviation-datarbrazil
306 commits · Last activity 2026-08-22 · 0% stars, 30d
Responsiveness
How these are sampled
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

2024-09-25 · 402026-09-03 · 44
Earlier repositories
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-08-22 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting (Codecov)
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Show all practicesHide 2 practices
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-08-17
    Seen in the repository: CLAUDE.md
    Named in .Rbuildignore: .claude, CLAUDE.md
Shared conventions any agent may read, so they name no particular tool.
Seen in the repository: AGENTS.md
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (3)
Author, Maintainer since 0.0.1 (2022)
Contributor · added in 1.2.0
Releases (14)

Pick two releases to compare their code metrics.

  • 1.2.0Latest
    record
    2026-08-21 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • unarchivedReturned to CRAN
    2025-07-25
  • 1.1.1
    record
    2025-07-25 · diff ↗
  • archivedRemoved from CRAN
    2025-07-01
    requires archived package 'parzer'
  • 1.1.0
    record
    2025-05-19 · diff ↗ ·
    removed 1 export
    get_aircrafts_dates_available
    added 2 exports
    get_aircraft_dates_available, read_aircraft
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.0
    record
    2024-10-22 · diff ↗ ·
    added 2 exports
    check_input_date_format, latest_airfares_date
  • 0.5.0
    record
    2024-09-18 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.4.1
    record
    2024-04-23 · diff ↗
  • 0.4.0
    record
    2023-12-04 · diff ↗ ·
    added 1 export
    get_aircrafts_dates_available
  • 0.3.0
    record
    2023-06-29 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.2.1
    record
    2022-11-27 · diff ↗
  • 0.2.0
    record
    2022-05-05 · diff ↗ ·
    added 2 exports
    get_airfares_dates_available, read_airfares
Show 6 earlier eventsHide 6 earlier events
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.2
    record
    2022-03-18 · diff ↗
  • 0.1.1
    record
    2022-03-06 · diff ↗ ·
    added 3 exports
    check_date, get_airport_movement_dates_available, get_flight_dates_available
  • 0.1.0
    record
    2022-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.1
    record
    2022-01-21
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for flightsbr version 1.2.0 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy