url_accessible | R Documentation |
Try to send a HEAD
request to a URL using
curlGetHeaders()
or the curl package, and see if it
returns a successful status code.
url_accessible(x, use_curl = !capabilities("libcurl"), ...)
x |
A URL as a character string. |
use_curl |
Whether to use the curl package or the
|
... |
Arguments to be passed to |
TRUE
or FALSE
.
xfun::url_accessible("https://yihui.org")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.