Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/RECORDS-post_batch.R
Post a batch query of up to 100 ChemSpider record IDs.
1 2 3 4 5 6 7 8 | post_batch(
recordIds,
fields = "all",
apikey,
id = TRUE,
simplify_formula = FALSE,
coerce = FALSE
)
|
recordIds |
A vector of integer ChemSpider IDs. |
fields |
A character string indicating which fields to return; see Details. |
apikey |
A 32-character string with a valid key for ChemSpider's API services. |
id |
|
simplify_formula |
|
coerce |
|
"The available fields are: SMILES, Formula, InChI, InChIKey, StdInChI, StdInChIKey, AverageMass, MolecularWeight, MonoisotopicMass, NominalMass, CommonName, ReferenceCount, DataSourceCount, PubMedCount, RSCCount, Mol2D, Mol3D."
If a recordId
is not found, it is silently dropped.
A data frame (if multiple fields are returned), or a vector of adequate type if only one field is required.
Raoul Wolf (https://github.com/RaoulWolf/)
https://developer.rsc.org/compounds-v1/apis/post/records/batch
1 2 3 4 5 6 7 | ## Not run:
## Post a query for the first 50 ChemSpider entries.
recordIds <- 1:50
apikey <- "a valid 32-character ChemSpider apikey"
post_batch(recordIds = recordIds, apikey = apikey)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.