request {PubChemR} | R Documentation |
Constructs a URL for the PubChem API based on the provided parameters.
request(
identifier = NULL,
namespace = "cid",
domain = "compound",
operation = NULL,
output = "JSON",
searchtype = NULL,
options = NULL
)
identifier |
The identifier for the compound. |
namespace |
The namespace for the identifier (default: 'cid'). |
domain |
The domain for the request (default: 'compound'). |
operation |
The operation to be performed (default: NULL). |
output |
The desired output format (default: 'JSON'). |
searchtype |
The type of search to be performed (default: NULL). |
options |
Additional parameters. Currently has no effect on the results. |
A constructed URL for the PubChem API.
request(
identifier = "aspirin",
namespace = "name"
)