Learn R Programming

webchem (version 1.0.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("aw", "chebi", "ci", "cs", "cs_web", "cir", "cts", "etox", "fn", "nist",
    "opsin", "pan", "pc", "srs", "wd")
)

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.

Value

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

Examples

Run this code
# NOT RUN {
ping_service("pan")
# }

Run the code above in your browser using DataLab