gracefully_fail {ptm} | R Documentation |
Check that Internet Resource Work Properly and Fail Gracefully When Not
Description
Checks that internet resource works properly and fail gracefully when not.
Usage
gracefully_fail(call, timeout = 10, ...)
Arguments
call |
url of the resource. |
timeout |
set maximum request time in seconds. |
... |
further named parameters, such as query, headers, etc. |
Details
To be used as an ancillary function.
Value
The response object or NULL when the server does not respond properly.
Author(s)
thefactmachine
References
https://gist.github.com/thefactmachine/18279b7796c0836d9188
Examples
gracefully_fail("http://httpbin.org/delay/2")
[Package ptm version 1.0.1 Index]