read_
functions now is to download data from the latest date available.The function read_aircrafts()
is now deprecated in favor of read_aircraft()
simply to fix a typo in the function name. The behavior and outputs are identical. Closes #45
CRAN policy:
Function read_airports()
now downloads v2 version of public airports data. Closes #41
Major changes:
read_airfares()
is working again. Closes #30. The prices of air tickets are now returned as numeric.read_flights()
with fixed decimal values in numeric columns. Closes #43Function read_airports()
with fixed numeric values for "altitude"
column. Closes #42
Minor changes:
yyyymm
OR a 4-digit format yyyy
.latest_airfares_date()
read_aircraft()
for multiple months when the number of collums differed across months. Fixed using data.table::rbindlist(fill = TRUE)
read_flights()
, read_airport_movements()
, and read_aircraft()
now accept vectors of dates like c(202201, 202301)
or c(2022, 2024)
read_airports()
and read_aircraft()
now has a cache
parameter.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:
read_flights()
function now uses fread(encoding = 'Latin-1')
internally to avoid issues with encoding. Closed #35.get_airport_movement_dates_available()
does not throw warnings of NA
values anymore.read_aircraft()
function now used fread(skip = 1)
internally to read column names correctly.read_flights()
and read_airport_movements()
now have a new parameter cache
, which indicates whether the function should read cached data downloaded previously. Defaults to TRUE
. Closed #31.The function read_aircraft()
now has a date
parameter, which allows one to download the data on aircraft registered at ANAC at particular years/months. Closed #33.
Minor changes:
All functions now return numeric columns with numeric
class. Closed #32.
Bug fixes:
read_flights()
function in Unix systems.
Closed #31.Function read_airfares() is temporarily unavailable. See issue #30
Minor changes:
Function read_flights()
now accepts a vector of dates. Closed #29.
Bug fixes:
get_airfares_dates_available()
because of ".CSV" in ANAC url. Closed #27.get_airport_movement_dates_available()
read_flights()
due to changes in ANAC data links.intro_flightsbr
vignetteread_flights()
work again.New function read_airfares()
to read data on airfares of domestic and international flights Closed #22.
Minor changes:
read_flights()
and read_airport_movements()
are now cached in temp dir. Closed #20.character
. This fixes a bug in the read_airport_movements()
function. Closed #20.read_flights()
and read_airport_movements()
no longer have side effects on objects named month
and year
on the global environment. The split_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.latlon_to_numeric()
with suppressed warnings.read_aircraft()
to read data on all aircraft registered in the Brazilian Aeronautical Registry (Registro Aeronáutico Brasileiro - RAB) Closed #14.read_airports()
to read data on all public and private airports. Closed #4 and Closed #9.latest_flights_date()
to check the date of the latest flight data available. Closed #16.read_airport_movements()
to download data on airport movements. Closed #15.read_flights()
now takes date
input in the format yyyymm
or yyyy
. When the date input is a 4-digit number, the function now downloads data of all months in that year. Closed #1.read_flights()
now automatically detects and checks the latest flights data available. Closed #13.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 with yyyymm
format 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 dataThree separate vignettes. A general intro to the package, and more detailed vignettes on read_flights
and read_airports()
.
Minor changes:
select
in read_flights()
, allowing the user to specify the columns that should be read.read_flights()
. Coverage of 95.24%. Closed #5.date
input. Closed #2.Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.