| url_accessible {xfun} | R Documentation |
Try to send a HEAD request to a URL if curl is available,
otherwise try to download the URL via xfun::download_file(),
and see if it succeeds.
url_accessible(x, use_curl = loadable("curl"))
x |
A URL as a character string. |
use_curl |
Whether to use the curl package. |
TRUE or FALSE.
xfun::url_accessible("https://yihui.org")