gracefully_fail: Check that Internet Resource Work Properly and Fail...

View source: R/gracefully.R

gracefully_failR 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")

ptm documentation built on Aug. 7, 2022, 5:05 p.m.

Related to gracefully_fail in ptm...