Closed lwrogers-uw closed 3 years ago
Great catch - sorry for the delayed response. I just updated getFIA to point to the correct URL.
I've also made an update to readFIA that allows us to load reference tables alongside other FIA tables. For example, try:
library(rFIA)
## getFIA calls readFIA internally, same functionality for reading FIA data already on disk
db <- getFIA(states = c('RI', 'REF'))
Non-reference tables will be merged across states, consistent with previous behavior. Reference tables are simply added to the FIA.Database
and denoted by prefix REF_
.
getFIA(states = 'REF') returns:
Error in download.file(url, temp) : cannot open URL 'https://apps.fs.usda.gov/fia/datamart/CSV/REF.zip'
Correct URL should be:
https://apps.fs.usda.gov/fia/datamart/CSV/FIADB_REFERENCE.zip