powered by
check if a URL can be reached, return TRUE if yes and FALSE if cannot or with other status code
checkUrl(url, timeout = 5)
string, the URL to request
seconds to wait before return FALSE
TRUE if url is reachable, FALSE if not
TRUE
FALSE
# NOT RUN { checkUrl("https://google.com") try(checkUrl("https://randomwebsite123.com", 1)) # }
Run the code above in your browser using DataLab