View source: R/check_countries_api.R
check_countries_api | R Documentation |
Check if the connection to REST Countries API is working. The function checks if the user has an internet connection and if any answer is returned from the Countries REST API.
check_countries_api(warnings = TRUE, timeout = 4)
warnings |
Logical value indicating whether to output a warning when there is no connection. Default is |
timeout |
Numeric value giving the timeout in seconds for attempting connection to the API. Default is |
Returns a logical value: TRUE
if there is a connection, FALSE
if there is no connection.
list_fields, country_info
check_countries_api()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.