webchem (version 1.3.0)

ping_service: Ping an API used in webchem to see if it's working.

Description

Ping an API used in webchem to see if it's working.

Usage

ping_service(
  service = c("bcpc", "chebi", "chembl", "cs", "cs_web", "cir", "cts", "etox", "fn",
    "nist", "opsin", "pc", "srs", "wd"),
  apikey = NULL
)

Value

A logical, TRUE if the service is available or FALSE if it isn't

Arguments

service

character; the same abbreviations used as prefixes in webchem functions, with the exception of "cs_web", which only checks if the ChemSpider website is up, and thus doesn't require an API key.

apikey

character; API key for services that require API keys

Examples

Run this code
if (FALSE) {
ping_service("chembl")
}

Run the code above in your browser using DataLab