timeout | R Documentation |
Set maximum request time.
timeout(seconds)
seconds |
number of seconds to wait for a response until giving up. Can not be less than 1 ms. |
This timeout is passed on to curl::handle_setopt()
.
See there and curl::curl_options()
for more details.
Other config:
add_headers()
,
authenticate()
,
config()
,
set_cookies()
,
use_proxy()
,
user_agent()
,
verbose()
## Not run:
GET("http://httpbin.org/delay/3", timeout(1))
GET("http://httpbin.org/delay/1", timeout(2))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.