Check if a url exists with httr
url_exists(url, non_2xx_return_value = FALSE, quiet = TRUE, timeout_thres = 10)
A URL to check
what to do if the site exists but the
HTTP status code is not in the 2xx
range. Default is to return TRUE
.
if not FALSE
, then every time the non_2xx_return_value
condition
arises a warning message will be displayed. Default is TRUE
.
timeout in seconds for httr attempt
A boolean value to indicate whether a website is reachable