Download multiple files with a progress bar. Retries failed downloads up to 3 times. Downloads are in parallel and in batches to show progress. First 10 Mb of a file is downloaded to check the speed.
spod_download_in_batches(
files_to_download,
batch_size = 5,
bar_width = 20,
chunk_size = 1024 * 1024,
test_size = 10 * 1024 * 1024,
max_retries = 3L,
timeout = 900,
show_progress = interactive() && !isTRUE(getOption("knitr.in.progress"))
)
A data frame with columns target_url
, local_path
, file_size_bytes
and local_file_size
.
A data frame with columns target_url
, local_path
and file_size_bytes
.
Numeric. Number of files to download at a time.
Numeric. Width of the progress bar.
Numeric. Number of bytes to download at a time for speed test.
Integer. Maximum number of retries for failed downloads.
Numeric. Timeout in seconds for each download.
Logical. Whether to show the progress bar.