Pings the CoinGecko API to check if the service is available
ping()
Returns TRUE
if the service is available and FALSE
otherwise.
This function has no arguments.
ifelse(ping(), "API is available", "API is not available")
#> [1] "API is available"