Learn R Programming

PubChemR (version 2.1.4)

PubChemR-classes: PubChemInstanceList and PubChemInstance Classes

Description

The PubChemInstanceList object is a superclass returned by a request for compound(s) from the PubChem Database, such as the output from get_compounds, get_assays, etc.

The PubChemInstance object is another superclass for a PubChem instance, such as an assay, compound, substance, etc. These instances are nested within the results slot of a PubChemInstanceList object. Similar to PubChemInstanceList, the PubChemInstance also contains the same slots as described below. For more details, see instance.

Arguments

Slots

results:

A list containing elements of each of the requested compounds, assays, substances, etc.

request_args:

A list containing the input arguments of a PubChem request.

success:

A logical value indicating whether the request was successfully completed (TRUE) or not (FALSE).

error:

A list detailing any errors encountered during the request, if applicable.