Closed brendanwallison closed 2 years ago
@brendanwallison , I am so sorry for some reason my notifications were turned off for this repository and I have missed....quite a few. This has been updated in major update branch, soon to be merged into main.
I'm using R 4.1.1 and the most recent version of bbsAssistant as of 10/09/2021 in Windows 10. The get_bbs_data function kept failing every time I called it with the following code:
Resulting in:
Error in curl::curl_fetch_disk(url, x$path, handle = handle) : Failed to open file C:\Dev\Classes\Spatial Ecology\HW2\data-raw\5ea04e9a82cefae35a129d65\50-StopData.zip.
Digging into things a little bit more, it was simply because it was failing to create the directory to dump the data into (the default behavior is to create a 'data-raw' folder, then a folder based on the sb_id inside of that, but by default dir.create() cannot create directories recursively in this manner).
The error message came a bit later because suppressWarnings() wrapped up the actual point of failure:
This fixed it for me: