powered by
Submits a potentially asynchronous PubChem request and returns a query object containing the initial response and listkey metadata.
pc_submit( domain = "compound", namespace = "cid", identifier = NULL, operation = NULL, searchtype = NULL, output = "JSON", options = NULL, ... )
An object of class `PubChemAsyncQuery`.
PubChem domain.
PubChem namespace.
Identifier(s).
Operation.
Search type.
Output format.
Named list of query options.
Additional arguments forwarded to `httr::RETRY`.
If PubChem responds with a waiting payload, `listkey` is captured and can be polled later using `pc_poll()` or `pc_collect()`.
q <- pc_submit(identifier = 2244, offline = TRUE) inherits(q, "PubChemAsyncQuery") if (FALSE) { pc_submit(identifier = 2244) }
Run the code above in your browser using DataLab