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

fix overwrite logic #79

Closed jsta closed 4 years ago

jsta commented 4 years ago

Running test-download_bbs.R in a clean session gives me an error:

Error in if (overwrite.bbs | length(list.files(data.dir)) == 0) { : argument is of length zero

because overwrite.bbs is NULL. This PR sets it to FALSE if no file conflicts are detected.