safe_download: Safe file download with platform-specific handling

View source: R/platform_utils.R

safe_downloadR 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


ces documentation built on Aug. 29, 2025, 5:26 p.m.