powered by
Convenience wrapper around `pc_request()` for `compound` domain record retrieval.
pc_compound( identifier, namespace = "cid", operation = NULL, searchtype = NULL, output = "JSON", options = NULL, ... )
A typed `PubChemRecord` object.
Identifier(s).
PubChem namespace.
Operation.
Search type.
Output format.
Named list of query options.
Additional arguments forwarded to `httr::RETRY`.
Returns a typed `PubChemRecord` object and preserves transport metadata such as `success`, `status`, and cache flags.
cmp <- pc_compound(2244, offline = TRUE) inherits(cmp, "PubChemRecord") if (FALSE) { pc_compound(2244) }
Run the code above in your browser using DataLab