gracefully_fail {ptm} | R Documentation |
Checks that internet resource works properly and fail gracefully when not.
gracefully_fail(call, timeout = 10, ...)
call |
url of the resource. |
timeout |
set maximum request time in seconds. |
... |
further named parameters, such as query, headers, etc. |
To be used as an ancillary function.
The response object or NULL when the server does not respond properly.
thefactmachine
https://gist.github.com/thefactmachine/18279b7796c0836d9188
gracefully_fail("http://httpbin.org/delay/2")