Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

## Not run: 
ping_service("pan")

## End(Not run)

webchem

Chemical Information from the Web

v1.1.1
MIT + file LICENSE
Authors
Eduard Szöcs [aut], Robert Allaway [ctb], Daniel Muench [ctb], Johannes Ranke [ctb], Andreas Scharmüller [ctb], Eric R Scott [ctb], Jan Stanstrup [ctb], João Vitor F Cavalcante [ctb], Gordon Getzinger [ctb], Tamás Stirling [ctb, cre]
Initial release
2021-02-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.