Helper function to ensure examples do not execute when internet resource is temporarily unavailable, as in such cases rendering the example does not provide a reliable check. This allows examples ("tests") to "fail gracefully".

has_resource(url = NULL)

Arguments

url

vector of URL resources required

Examples

has_resource("https://google.com")
#> [1] TRUE