trashbirdecology / bbsAssistant

An R package for downloading and handling data and information from the North American Breeding Bird Survey.
Creative Commons Zero v1.0 Universal
27 stars 13 forks source link

'Error in unzip(zipF, exdir = tempdir) : invalid zip name argument' received after running grab_bbs_data() #118

Open kpdavis47 opened 1 year ago

kpdavis47 commented 1 year ago

Dear package creators, I've used the bbsAssistant package to compile BBS data before without issue. Recently, however, in an attempt to recreate my focal dataset, I ran bbs.lists = grab_bbs_data(sb_id="5ea04e9a82cefae35a129d65") and got the following error: Error in unzip(zipF, exdir = tempdir) : invalid zip name argument.

Here is the code I used that produced the error:

library(bbsAssistant)
bbs.lists = grab_bbs_data(sb_id="5ea04e9a82cefae35a129d65") 
Error in unzip(zipF, exdir = tempdir) : invalid zip name argument

I expected that when I ran bbs.lists = grab_bbs_data(sb_id="5ea04e9a82cefae35a129d65") , it would produce a list object containing BBS data, as it has in the past.

Here is information about the operating system and R/RStudio versions I'm using:

Additional context This problem occurred when I tried running the code above using R version 4.1.3. I also tried to reinstall the bbsAssistant package in R version 4.1.1 and see if that fixed the problem, but when I deleted the package folder from my R 4.1.1 library and then ran install.packages("bbsAssistant"), I got an error that bbsAssistant was not available for my version of R.

Thank you so much for your time and help!