Description Usage Arguments Details Value See Also Examples
View source: R/RECORDS-get_recordId_externalreferences.R
GET a list of external references for a ChemSpider ID.
1 2 3 4 5 6 | get_recordId_externalreferences(
recordId,
dataSources = NULL,
apikey,
coerce = FALSE
)
|
recordId |
A valid (integer) ChemSpider ID. |
dataSources |
Either a character string, a vector of characters, or a list of characters detailing which |
apikey |
A 32-character string with a valid key for ChemSpider's API services. |
coerce |
|
It is recommended to specify which dataSources
to load, as some substances have a substantial amount of references (>10'000). Use chemspiderapi::get_datasources()
for a complete list of the >350 dataSources
.
Either a data frame (if no options are dropped) or a character/integer vector, depending on the external ID.
https://developer.rsc.org/compounds-v1/apis/get/records/{recordId}/externalreferences
1 2 3 4 5 6 7 8 | ## Not run:
## Get the PubChem external reference for caffeine
recordId <- 2424L
dataSources <- "PubChem"
apikey <- "a valid 32-character ChemSpider apikey"
get_recordId_externalreferences(recordId = recordId, dataSources = dataSources, apikey = apikey)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.