Closed denisecammarota closed 6 months ago
Hi @denisecammarota . I suspect it must a problem during the data download. For some reason, file is downloaded but it gets corrupted.
I will need some time to investigate this in more detail. In the mean time, try running the function with cache = T
, and it should work.
df <- read_flights(date = 2015, cache = T)
Thank you so much for the answer. I tried and still with the option cache = T, which I think it is the default, and with cache = F, the data download seems to be having some problem in both cases.
Hi @denisecammarota.
data.table::fread()
but it throws this warning message. I'm afraid there's not much I can do about it because it's an issue with the original data set provided by ANAC but I believe this is not big problem sinc fread can still read the dataread_flights()
function now used encoding = 'Latin-1'
internally to avoid issues with encoding. This should solve the problem with special characters in some columns.Thank you! I was able to read, encoded again for some special characters and everything worked fine, no errors!
I'm glad to hear this. I'll be shipping an updated version on CRAN asap.
Hello, I was trying to download the data from 2015, with type being either 'basica' or 'combinada' and for both types I get error as well as waning messages. For type = 'basica': For type = 'combinada': In this last case, the data ends up loading, but the encoding appears like this: Similar things happened for year = 2001, for example. I am working on R version 4.2.3 on windows. Thank you so much for your attention, as well as for the package!