How to set timeout for utils :: download.file () in R

I am trying to download a file that takes more than 60 seconds using the download.file () function. The documentation mentions a timeout option, for example.

The timeout for many parts of the transmission can be set using the option timeout, which defaults to 60 seconds.

When I try to install it, I get an error

download.file("https://server/FileURL", destfile = "file.xml", timeout = 444)

Message example

unused argument (timeout = 444)
+4
source share
1 answer

To get an option

getOption('timeout')
# [1] 60

To set a parameter

options(timeout=100)
+3
source

Source: https://habr.com/ru/post/1627893/


All Articles