Skip to contents

Retrieve detailed compound information using a PubChem Compound ID.

Usage

get_compound_by_pubchem_cid(client, cid, fields = "all", format = "json")

Arguments

client

An mw_rest_client object

cid

Character or numeric. PubChem CID

fields

Character. Fields to return (default: "all")

format

Character. Output format ("json" or "txt")

Value

Tibble with compound information (JSON) or character string (txt)

Examples

if (FALSE) { # \dontrun{
client <- mw_rest_client()
compound_info <- get_compound_by_pubchem_cid(client, "5793")
} # }