get_remote_file: Function to get/download file from an 'URL'.

View source: R/get_remote_file.R

get_remote_fileR Documentation

Function to get/download file from an URL.

Description

Function to get/download file from an URL.

Usage

get_remote_file(
  file_remote,
  file_local,
  verbose = TRUE,
  mode = "w",
  method = "auto",
  cache_ok = TRUE,
  sleep = FALSE
)

Arguments

file_remote

Vector of URLs/remote file names.

file_local

Vector of local file names, the destination files for file_remote.

verbose

Should the function give messages about download progress?

mode

Mode with which to write the file.

method

Method for downloading remote files.

cache_ok

Is a server-side cached value acceptable?

sleep

If a number, this is the number of seconds to sleep between download iterations. This can help with keeping some web servers happy.

Author(s)

Stuart K. Grange

See Also

download.file


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.