Check if the connection to Countries REST API is working
Source:R/check_countries_api.R
check_countries_api.Rd
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.
Arguments
- warnings
Logical value indicating whether to output a warning when there is no connection. Default is
TRUE
.- timeout
Numeric value giving the timeout in seconds for attempting connection to the API. Default is
4
second.