Learn R Programming

PubChemR (version 3.0.0)

pc_assay: Query Assay Records via the Next-Generation API

Description

Convenience wrapper around `pc_request()` for assay retrieval workflows.

Usage

pc_assay(
  identifier,
  namespace = "aid",
  operation = "description",
  output = "JSON",
  options = NULL,
  ...
)

Value

A typed `PubChemRecord` object.

Arguments

identifier

Identifier(s).

namespace

PubChem namespace.

operation

Operation.

output

Output format.

options

Named list of query options.

...

Additional arguments forwarded to `httr::RETRY`.

Details

Defaults are tuned for assay description retrieval while preserving all transport controls via `...`.

Examples

Run this code
assay_rec <- pc_assay(367, offline = TRUE)
inherits(assay_rec, "PubChemRecord")

if (FALSE) {
pc_assay(367)
}

Run the code above in your browser using DataLab