assert_url | R Documentation |
Assert that a Uniform Resource Locator (URL) is complete and valid. Requires that the httr package is available.
assert_url(url, ...)
url |
'character' string. URL |
... |
Other arguments passed to the |
Returns url
invisibly.
A NULL
value is returned if the assertion fails for any reason.
Code adapted from Stack Overflow, accessed on 2023-12-11 and authored by Bob Rudis.
assert_url("https://www.usgs.gov/")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.