safe_download {ces}R Documentation

Safe file download with platform-specific handling

Description

Safe file download with platform-specific handling

Usage

safe_download(
  url,
  destfile,
  mode = "wb",
  quiet = FALSE,
  timeout = 600,
  max_retries = 3
)

Arguments

url

URL to download from

destfile

Destination file path

mode

"wb" for binary, "w" for text

quiet

Logical indicating whether to show progress

timeout

Timeout in seconds

max_retries

Maximum number of retry attempts

Value

0 if successful, error code otherwise


[Package ces version 1.0.0 Index]