Recent Releases of flightsbr
flightsbr - v1.1.1
flightsbr v1.1.1
- The previous version of {flightsbr} was temporarily taken down from CRAN because one of its dependencies (the {parzer} package) was removed from CRAN on July 1st 2025. This update of flightsbr v1.1.1 is simply intended to put the package back on CRAN.
- R
Published by rafapereirabr 7 months ago
flightsbr - flightsbr v1.1.0
Major changes:
- The default of all
read_functions now is to download data from the latest date available. - The function
read_aircrafts()is now deprecated in favor ofread_aircraft()simply to fix a typo in the function name. The behavior and outputs are identical. Closes #45
- The default of all
CRAN policy:
- updaed DESCRIPTION file removing 'NeedsCompilation'
- R
Published by rafapereirabr 9 months ago
flightsbr - v1.0.0
flightsbr v1.0.0
Breaking changes:
- The names of all columns in the data outputs are now cleanned with {janitor}
- Function
read_airports()now downloads v2 version of public airports data. Closes #41
Major changes:
Minor changes:
- Internally check of the consistency of date inputs. The date input must be consistent in either a 6-digit format
yyyymmOR a 4-digit formatyyyy. - New support function
latest_airfares_date() - Fix error that stopped reading aircraft data
read_aircrafts()for multiple months when the number of collums differed across months. Fixed usingdata.table::rbindlist(fill = TRUE)
- Internally check of the consistency of date inputs. The date input must be consistent in either a 6-digit format
- R
Published by rafapereirabr over 1 year ago
flightsbr - v0.5.0
flightsbr v0.5.0
Major changes:
- Fixed ANAC's broken link of public airports
- Functions
read_flights(),read_airport_movements(), andread_aircrafts()now accept vectors of dates likec(202201, 202301)orc(2022, 2024) - Functions
read_airports()andread_aircrafts()now has acacheparameter. - The package is now significantly faster because it is using
curl::multi_download()to download files in parallel. This brings the advantage that the package now automatically detects whether the data file has been updated and should be downloaded again.
Minor changes:
- Removed dependency on the {httr} package
- Streamlined functions to simplify package maintenance and improve performance
- Using {fs} to manage file paths and {archive} to unzip files
- Reorganization of internal functions to simplify package maintenance
- R
Published by rafapereirabr over 1 year ago
flightsbr - v0.4.1
- Minor changes:
- The
read_flights()function now usesfread(encoding = 'Latin-1')internally to avoid issues with encoding. Closed #35. - The function
get_airport_movement_dates_available()does not throw warnings ofNAvalues anymore. - The
read_aircrafts()function now usedfread(skip = 1)internally to read column names correctly.
- The
- R
Published by rafapereirabr almost 2 years ago
flightsbr - v0.4.0
flightsbr v0.4.0
Major changes:
- The functions
read_flights()andread_airport_movements()now have a new parametercache, which indicates whether the function should read cached data downloaded previously. Defaults toTRUE. Closed #31. - The function
read_aircrafts()now has adateparameter, which allows one to download the data on aircrafts registered at ANAC at particular years/months. Closed #33.
- The functions
Minor changes:
- All functions now return numeric columns with
numericclass. Closed #32.
- All functions now return numeric columns with
Bug fixes:
- Fixed bug when unzipping files for
read_flights()function in Unix systems. Closed #31. - Updated link to private airports data changed by ANAC. Closed #34.
- Fixed bug when unzipping files for
- R
Published by rafapereirabr about 2 years ago
flightsbr - flightsbr v0.3.0
Major changes:
- Function read_airfares() is temporarily unavailable. See issue #30
Minor changes:
- Function
read_flights()now accepts a vector of dates. Closed #29.
- Function
Bug fixes:
- Fixed broken link for data dictionary for airport movement data
- Fixed code to rbindlist air fares from multiple years. Closed #26.
- Fixed code to read a few dates that were not caught in
get_airfares_dates_available()because of ".CSV" in ANAC url. Closed #27. - Fixed code to use
get_airport_movement_dates_available()
- R
Published by rafapereirabr over 2 years ago
flightsbr - v0.2.0
flightsbr v0.2.0
Major changes:
- Update urls to new location where flights data is stored. This makes
read_flights()work again. - New function
read_airfares()to read data on air fares of domestic and international flights Closed #22.
- Update urls to new location where flights data is stored. This makes
Minor changes:
- R
Published by rafapereirabr almost 4 years ago
flightsbr - flightsbr v0.1.2
- Bug fixes:
- Fixed bug that stopped flightsbr from downloading 2022 data.
- R
Published by rafapereirabr almost 4 years ago
flightsbr - v0.1.1
flightsbr v0.1.1
- Bug fixes:
- functions
read_flights()andread_airport_movements()no longer have side effects on objects namedmonthandyearon the global environment. Thesplit_date()support function was removed from the package. Closes #17. read_functions now try to download for a 2nd time if the 1st attempt failed. This will help overcome a small issue with the instability of ANAC data links. Closes #18.- Using a simpler / slightly faster version of
latlon_to_numeric()with suppressed warnings. - Update package citation, adding OSF preprint DOI.
- functions
- R
Published by rafapereirabr almost 4 years ago
flightsbr - v0.1.0
flightsbr v0.1.0
Major changes:
- New function
read_aircrafts()to read data on all aircrafts registered in the Brazilian Aeronautical Registry (Registro Aeronáutico Brasileiro - RAB) Closes #14. - New function
read_airports()to read data on all public and private airports. Closes #4 and Closes #9. - New function
latest_flights_date()to check the date of the latest flight data available. Closes #16. - New function
read_airport_movements()to download data on airport movements. Closes #15. - Function
read_flights()now takesdateinput in the formatyyyymmoryyyy. When the date input is a 4-digit number, the function now downloads data of all months in that year. Closes #1. - Function
read_flights()now automatically detects and checks the latest flights data available. Closes #13. - new internal support functions:
split_date(): Split a date from yyyymmm to year yyyy and month mmcheck_date(): Check whether date input is acceptablegenerate_all_months(): Generate all months withyyyymmformat in a yearlatlon_to_numeric(): Convert spatial coordinates of airports to lat longet_flights_url(): Put together the url of flight data filesget_flight_dates_available(): Retrieve from ANAC website all dates available for flights datadownload_flights_data(): Download and read ANAC flight dataget_airport_movements_url(): Put together the url of airport movement data filesget_airport_movement_dates_available(): Retrieve all dates available for airport movements datadownload_airport_movement_data(): Download and read ANAC airport movement data- Three separate vignettes. A general intro to the package, and more detailed vignettes on
read_flightsandread_airports().
- New function
Minor changes:
- R
Published by rafapereirabr about 4 years ago