set_timeout: Set Download Timeout

View source: R/do_functions.R

set_timeoutR Documentation

Set Download Timeout

Description

The default timeout for downloads is 60 seconds. This is not long enough for many of the files that are downloaded using this package. We therefore supply a convenience function to easily change this setting. You can permanently change this default by setting R_DEFAULT_INTERNET_TIMEOUT in your .Renviron.

Usage

set_timeout(seconds = 600L)

Arguments

seconds

The number of seconds to set as the timeout (default 600 seconds).

Value

A list with the old timeout setting (invisibly).

Examples

getOption("timeout")
old_setting <- set_timeout()
getOption("timeout")
options(old_setting)

macmillancontentscience/dlr documentation built on Sept. 24, 2022, 12:50 p.m.