Description Usage Arguments Details Value Examples
View source: R/internal_functions.R
Assert that a URL is complete and valid
1 | is_valid_url(string)
|
string |
(Character) A URL to check. |
The regex I use is "@stephenhay" from https://mathiasbynens.be/demo/url-regex because it's the shortest regex that matches every CRAN mirror at https://cran.r-project.org/mirrors.html.
A logical value, TRUE
if the URL is valid, FALSE
if otherwise.
1 2 3 4 | ## Not run:
is_valid_url("http://rstudio.com")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.