Check if the Ensembl server where REST API service is running is reachable. This function attempts to connect to https://rest.ensembl.org, returning TRUE on success, and FALSE otherwise. Set verbose = TRUE for a step by step description of the connection attempt.

is_ensembl_reachable(url = ensembl_server(), port = 443L, verbose = FALSE)

Arguments

url

Ensembl REST API server URL. Default is https://rest.ensembl.org. You should not need to change this parameter.

port

Network port on which to ping the server. You should not need to change this parameter.

verbose

Whether to be verbose (TRUE) or not (FALSE).

Value

A logical value: TRUE if EBI server is reachable, FALSE otherwise.

Examples

# Check if the Ensembl Server is reachable is_ensembl_reachable() # Returns TRUE or FALSE.
#> [1] TRUE
# Check if the GWAS Catalog Server is reachable # and show exactly at what step is it failing (if that is the case) is_ensembl_reachable(verbose = TRUE)
#> Am I online? Yes.
#> Is there a DNS service running? Yes.
#> Connected to the internet? Yes.
#> Ping'ing rest.ensembl.org on port 443...
#> rest.ensembl.org successfully replied in 81.912 ms.
#> [1] TRUE