powered by
Convenience wrapper around `pc_request()` for `substance` domain retrieval.
pc_substance( identifier, namespace = "sid", operation = "record", output = "JSON", options = NULL, ... )
A typed `PubChemRecord` object.
Identifier(s).
PubChem namespace.
Operation.
Output format.
Named list of query options.
Additional arguments forwarded to `httr::RETRY`.
The function returns a typed record object without altering payload shape, making it suitable for downstream custom parsers.
sub_rec <- pc_substance(5360534, offline = TRUE) inherits(sub_rec, "PubChemRecord") if (FALSE) { pc_substance(5360534) }
Run the code above in your browser using DataLab