Learn R Programming

contentid (version 0.0.15)

has_resource: has_resource

Description

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".

Usage

has_resource(url = NULL)

Arguments

url

vector of URL resources required

Examples

Run this code
# NOT RUN {
has_resource("https://google.com")

# }

Run the code above in your browser using DataLab