is_url | R Documentation |
Tests whether the elements of a character vector are Uniform Resource Locators (URLs).
is_url(x)
x |
Character vector to test. |
This function is based on xml2::url_parse()
and simply checks whether the elements in x
contain both a scheme as well as some scheme-specific
part (excl. ports). No further checks are performed, so it's explicitly not verified that a URL actually conforms to its respective scheme.
A logical vector of the same length as x
.
Other HTTP functions:
is_http_success()
,
req_cached()
pal::is_url(c("/some/path",
"file:///some/path"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.