brunobrr / bdc

Check out the vignettes with detailed documentation on each module of the bdc package
https://brunobrr.github.io/bdc
GNU General Public License v3.0
23 stars 7 forks source link

bdc_clean_names error #241

Closed paschatz closed 1 year ago

paschatz commented 1 year ago

I am trying to run the bdc_clean_names() function and I get the following error:

bdc_clean_names(spatialnetdf$genus_species, save_outputs = FALSE)'
Error in utils::download.file(grep(os, urls, value = TRUE), file, mode = "wb") : 
  lengths of 'url' and 'destfile' must match

any idea how to resolve? (R version 4.2.2 and bdc 1.1.2)

kguidonimartins commented 1 year ago

Thanks for reporting. Are you running this on Windows? If yes, @hazeljanderson suggested in the issue #230 that running options(download.file.method = "wininet") before bdc_clean_names() could solve your problem. Could you try that first, please?

kguidonimartins commented 1 year ago

Hi @paschatz, did you try the solution?

paschatz commented 1 year ago

my sincerely apologies for the delayed response. yes, now it works nicely. you can close the issue.

kguidonimartins commented 1 year ago

No problem @paschatz! I'm glad to hear that your issue has been resolved. Be sure to report if you have another problem with bdc. I'm closing this issue.