View source: R/ensembl_server.R
is_ensembl_reachable | R Documentation |
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)
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 ( |
A logical value: TRUE
if EBI server is reachable, FALSE
otherwise.
# Check if the Ensembl Server is reachable
is_ensembl_reachable() # Returns TRUE or FALSE.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.