baslat / sak

`sak` is my Swiss Army knife package, and it’s also where I put things. It has a whole bunch of random helper functions to make my life a bit easier.
Other
2 stars 0 forks source link

Better `download_file()` #17

Open baslat opened 11 months ago

baslat commented 11 months ago

I highly recommend using curl::multidownload() to get very large files as it’s built for exactly this purpose: it gives you a progress bar and it can resume the download if its interrupted.

dir.create("data", showWarnings = FALSE)

curl::multi_download( "https://r4ds.s3.us-west-2.amazonaws.com/seattle-library-checkouts.csv", "data/seattle-library-checkouts.csv", resume = TRUE )