-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem setting up local MySQL database to store airlines data #57
Comments
I hope that there are ways to make the data loading a bit more robust. I worry that this command would download 30 years of data then bomb out because of the missing months in 2016. I also wonder if the instructions might be modified to start with a less aggressive data load: ontime %>% Perhaps showing how to install a single (complete year, e.g., 2015) then add in the other years? ontime %>% takes a long time!ontime %>% Additional note from NJH: the example now has more than 24GB! There are over 300 months worth of files to download, and they will occupy more than 21 GB in their zipped and unzipped states. |
This is a known bug (#54). The problem is that we don't know which months of data are available on the server until we try to download them. I'm happy to field a pull request if you have a way for this function to fail gracefully. Note that while the error breaks |
On Dec 3, 2016, at 10:19 AM, Ben Baumer ***@***.***> wrote:
This is a known bug (#54). The problem is that we don't know which months of data are available on the server until we try to download them. I'm happy to field a pull request if you have a way for this function to fail gracefully.
MY RESPONSE: Is there a way to check the results of download.file() (or embed this within a call to try())?
Note that while the error breaks etl_extract(), it occurs after you have downloaded all of the valid data. So you can proceed by running etl_transform() and etl_load() in succession and these should still work.
MY RESPONSE: Is it possible to add a note about this to the vignette? This process isn't wholly clear to me (and likely to others as well).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
Nicholas Horton
Professor of Statistics
Department of Mathematics and Statistics, Amherst College
PO Box 5000, AC #2239
Amherst, MA 01002-5000
|
I tried to set up a local MySQL database to store the airlines data. When I ran:
R gave me the error message:
Error in download.file(url, method = method, ...) :
cannot download all files
In addition: Warning message:
In download.file(url, method = method, ...) :
URL 'http://tsdata.bts.gov/PREZIP/On_Time_On_Time_Performance_2016_10.zip': status was '404 Not Found'
I'm on a Mac and my R version is 3.3.1.
The text was updated successfully, but these errors were encountered: