View source: R/pubchem_status.R
getPubchemStatus | R Documentation |
This function sends a request to PubChem to retrieve the status of a given URL. It returns the status code and, if specified, the parsed information from the response.
getPubchemStatus(
returnMessage = FALSE,
printMessage = TRUE,
url = "https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/Aspirin/cids/JSON"
)
returnMessage |
Logical indicating whether to return the parsed information from the response. |
printMessage |
Logical indicating whether to print the status message. |
url |
The URL to send the request to. Default is "https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/Aspirin/cids/JSON". |
The status code of the response. If returnMessage
is TRUE
, the parsed information from the response is also returned.
getPubchemStatus()
getPubchemStatus(returnMessage = TRUE)
getPubchemStatus(printMessage = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.