| check-vector-isUrl | R Documentation |
Does the input contain a URL?
isUrl(x)
isAUrl(x)
allAreUrls(x)
x |
Object. |
This assert check is intended to be simple and does not check to see if the
URL exists (is active). For that, refer to isExistingUrl instead.
TRUE on success;
FALSE on failure, with cause set.
isUrl(): Vectorized.
isAUrl(): Scalar. Requires a single URL.
allAreUrls(): Scalar. Checks that all strings are URLs.
Updated 2023-10-06.
urls <- c("https://www.r-project.org/", "ftp://r-project.org/")
## TRUE ====
isUrl(urls)
isAUrl(urls[[1L]])
allAreUrls(urls)
## FALSE ====
isUrl("xxx")
isAUrl(urls)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.