beanumber / etl

R package to facilitate ETL operations
127 stars 21 forks source link

In etl_extract, "zero-length inputs cannot be mixed with those of non-zero length" #48

Closed wmay closed 5 years ago

wmay commented 5 years ago

etl_extract produces an error if there are zero new files to download and it is called with an ellipsis argument,

Error in mapply(downloader::download, src[missing], lcl[missing], ... = ...) : 
  zero-length inputs cannot be mixed with those of non-zero length

This code will reproduce the error:

library(etl)
cities = etl('cities')
cities %>% etl_extract()
# No new files to extract
cities %>% etl_extract(quiet = TRUE)
beanumber commented 5 years ago

Confirmed. Thanks!