The name of the zip file for Wisconsin's data appears to differ between the FTP server (Wiscons.zip at ftp://ftpext.usgs.gov/pub/er/md/laurel/BBS/DataFiles/States), and the data/region_codes.rds file (Wisons.zip), causing the get_bbsData() function to fail when trying to access data for Wisconsin.
To Reproduce
library(bbsAssistant)
data("region_codes")
region_filename <- region_codes$zip_states[region_codes$State == "WISCONSIN"]
print(region_filename)
#> [1] "Wisons.zip"
bbs_data <- get_bbsData(file = region_filename)
#> Warning in download.file(ZipName, temp, quiet = FALSE): cannot open URL
#> 'ftp://ftpext.usgs.gov/pub/er/md/laurel/BBS/DataFiles/States/Wisons.zip':
#> FTP status was '550 Requested action not taken; file unavailable'
#> Error in download.file(ZipName, temp, quiet = FALSE): cannot open URL 'ftp://ftpext.usgs.gov/pub/er/md/laurel/BBS/DataFiles/States/Wisons.zip'
I checked all other regions that have data and this seems to be the only one where the filenames don't match. Maybe also related to the recent BBS data update?
Describe the bug
The name of the zip file for Wisconsin's data appears to differ between the FTP server (
Wiscons.zip
at ftp://ftpext.usgs.gov/pub/er/md/laurel/BBS/DataFiles/States), and thedata/region_codes.rds
file (Wisons.zip
), causing theget_bbsData()
function to fail when trying to access data for Wisconsin.To Reproduce
Created on 2019-08-16 by the reprex package (v0.3.0)
Expected behavior
Expected the BBS data for Wisconsin to be downloaded.
Session info
Additional context
I checked all other regions that have data and this seems to be the only one where the filenames don't match. Maybe also related to the recent BBS data update?