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

Description Usage Arguments Value Examples

View source: R/ping.R

Description

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

Usage

1
2
3
4
ping_service(
  service = c("bcpc", "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

1
2
3
4
## Not run: 
ping_service("pan")

## End(Not run)

webchem documentation built on Dec. 11, 2021, 9:54 a.m.