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

View source: R/ping.R

ping_serviceR Documentation

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", "ci", "cs", "cs_web", "cir", "cts", "etox",
    "fn", "nist", "opsin", "pan", "pc", "srs", "wd"),
  apikey = NULL
)

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

Value

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

Examples

## Not run: 
ping_service("pan")

## End(Not run)

webchem documentation built on Nov. 3, 2022, 1:05 a.m.