-
Notifications
You must be signed in to change notification settings - Fork 24
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
Error when downloading tables for several states #49
Comments
It looks like Jacob Fraser already solved it in this PR: #46 |
I added an argument to the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
I recently updated to the dev version so that I could download some new tables with the change to the URLs on the datamart, but I now get this error if I try to download data for more than one state. Here's an example:
I think the error happens in line 441 here: b80e180
I think it could be fixed if you were to check if the length of states was >1, and then check if any of those states are "REF", and throw an error in that case.
It also looks like the "ENTIRE" option is broken, perhaps due to the datamart update. I get this error if I try it:
trying URL 'https://apps.fs.usda.gov/fia/datamart/CSV/ENTIRE_CSV.zip'
Error in download.file(url, temp, timeout = 3600) :
cannot open URL 'https://apps.fs.usda.gov/fia/datamart/CSV/ENTIRE_CSV.zip'
In addition: Warning messages:
1: In download.file(url, temp, timeout = 3600) :
downloaded length 0 != reported length 1245
2: In download.file(url, temp, timeout = 3600) :
cannot open URL 'https://apps.fs.usda.gov/fia/datamart/CSV/ENTIRE_CSV.zip': HTTP status was '404 Not Found'
Thanks for putting together such a useful package! Let me know if I can help troubleshoot.
The text was updated successfully, but these errors were encountered: