Learn R Programming

ces (version 1.0.2)

safe_download: 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
)

Value

0 if successful, error code otherwise

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