is_ebi_reachable | R Documentation |
Check if the EBI server where the GWAS Catalog REST API server is running is
reachable. This function attempts to connect to
https://www.ebi.ac.uk, returning TRUE
on
success, and FALSE
otherwise. Set chatty = TRUE
for a step by
step description of the connection attempt.
is_ebi_reachable(url = "https://www.ebi.ac.uk", port = 443L, chatty = FALSE)
url |
NHGRI-EBI GWAS Catalog server URL. Default is https://www.ebi.ac.uk. 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. |
chatty |
Whether to be verbose ( |
A logical value: TRUE
if EBI server is reachable, FALSE
otherwise.
# Check if the GWAS Catalog Server is reachable
is_ebi_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_ebi_reachable(chatty = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.