Learn R Programming

webchem (version 0.4.0)

ping: 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_pubchem(...)

ping_cs(...)

ping_pan(...)

Arguments

...

Curl options passed on to GET or POST

Value

A logical, TRUE or FALSE

TRUE if pubchem is reachable

TRUE if chemspider is reachable

TRUE if PAN is reachable

Examples

Run this code
# NOT RUN {
 # might fail if API is not available
 ping_pubchem()
 
# }
# NOT RUN {
 # might fail if API is not available
 ping_cs()
 
# }
# NOT RUN {
 # might fail if API is not available
 ping_pan()
 
# }

Run the code above in your browser using DataLab