You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
> getFIA(states = c("RI", "CT"),
+ dir = 'D:/Data/fia/rFIA_downloads/',
+ common = TRUE,
+ load = FALSE)
Saving to D:/Data/fia/rFIA_downloads/. NOTE: modifying FIA tables in Excel may corrupt csv files.
Error in if (states == "REF") { : the condition has length > 1
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:
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: