Description Usage Arguments Value Note
View source: R/httr-utilities.R
Function to ensure URL calls fail gracefully with an informative message if the resource is not available (and not give a check warning nor error).
1 |
url |
The base URL to check. |
TRUE
if the API is available, otherwise stop()
is called.
Based on code in opensensmapR
(https://github.com/sensebox/opensensmapR/blob/f69cf62b2771d5b6ed605c04b7ddd618f5a272c2/R/api.Rapi.R
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.