flightsbr v0.4.1
CRAN release: 2024-04-23
- 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 ofNA
values anymore. - The
read_aircrafts()
function now usedfread(skip = 1)
internally to read column names correctly.
- The
flightsbr v0.4.0
CRAN release: 2023-12-04
- 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 adate
parameter, 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
numeric
class. 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
flightsbr v0.3.0
CRAN release: 2023-06-29
- 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()
flightsbr v0.2.1
CRAN release: 2022-11-27
- Bug fixes:
- Fixed bug in
read_flights()
due to changes in ANAC data links. - Fixed broken link in
intro_flightsbr
vignette
- Fixed bug in
flightsbr v0.2.0
CRAN release: 2022-05-05
- 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 airfares of domestic and international flights Closed #22.
- Update urls to new location where flights data is stored. This makes
- Minor changes:
- The data downloaded in
read_flights()
andread_airport_movements()
are now cached in temp dir. Closed #20. - All columns are now returned with class
character
. This fixes a bug in theread_airport_movements()
function. Closed #20.
- The data downloaded in
flightsbr v0.1.2
CRAN release: 2022-03-18
- Bug fixes:
- Fixed bug that stopped flightsbr from downloading 2022 data.
flightsbr v0.1.1
CRAN release: 2022-03-06
- Bug fixes:
- functions
read_flights()
andread_airport_movements()
no longer have side effects on objects namedmonth
andyear
on the global environment. Thesplit_date()
support function was removed from the package. Closed #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. Closed #18. - Using a simpler / slightly faster version of
latlon_to_numeric()
with suppressed warnings. - Update package citation, adding OSF preprint DOI.
- functions
flightsbr v0.1.0
CRAN release: 2022-02-08
- Major changes:
- New function
read_aircrafts()
to read data on all aircrafts registered in the Brazilian Aeronautical Registry (Registro Aeronáutico Brasileiro - RAB) Closed #14. - New function
read_airports()
to read data on all public and private airports. Closed #4 and Closed #9. - New function
latest_flights_date()
to check the date of the latest flight data available. Closed #16. - New function
read_airport_movements()
to download data on airport movements. Closed #15. - Function
read_flights()
now takesdate
input in the formatyyyymm
oryyyy
. When the date input is a 4-digit number, the function now downloads data of all months in that year. Closed #1. - Function
read_flights()
now automatically detects and checks the latest flights data available. Closed #13. - new internal support functions:
-
split_date()
: Split a date from yyyymmm to year yyyy and month mm -
check_date()
: Check whether date input is acceptable -
generate_all_months()
: Generate all months withyyyymm
format in a year -
latlon_to_numeric()
: Convert spatial coordinates of airports to lat lon -
get_flights_url()
: Put together the url of flight data files -
get_flight_dates_available()
: Retrieve from ANAC website all dates available for flights data -
download_flights_data()
: Download and read ANAC flight data -
get_airport_movements_url()
: Put together the url of airport movement data files -
get_airport_movement_dates_available()
: Retrieve all dates available for airport movements data -
download_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_flights
andread_airports()
.
- New function
- Minor changes:
- new parameter
select
inread_flights()
, allowing the user to specify the columns that should be read. - new tests of
read_flights()
. Coverage of 95.24%. Closed #5. - New checks on
date
input. Closed #2. - Functions now should fail gracefully in case of problems with internet connection. Closed #7.
- new parameter
flightsbr v0.0.1
CRAN release: 2022-01-21
- Launch of flightsbr v0.0.1 on CRAN https://cran.r-project.org/package=flightsbr