get_mass_batch_queryId_results: Get results of a mass batch query from ChemSpider

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/FILTERING-get_mass_batch_queryId_results.R

Description

Get results from a ChemSpider query after get_mass_batch_queryId_status() returns "Complete".

Usage

1
get_mass_batch_queryId_results(queryId, status, apikey, coerce = FALSE)

Arguments

queryId

A valid 36-character query ID, as returned by post_mass_batch().

status

status A character string indicating the query status as returned by get_mass_batch_queryId_status()

apikey

A 32-character string with a valid key for ChemSpider's API services.

coerce

logical: should the list be coerced to a data.frame? Defaults to FALSE.

Details

Before running get_mass_batch_queryId_results(), make sure get_mass_batch_queryIdstatus() returns "Complete".

Value

Returns the record IDs of a mass batch query

Author(s)

Raoul Wolf (https://github.com/RaoulWolf/)

See Also

https://developer.rsc.org/compounds-v1/apis/get/filter/mass/batch/{queryId}/results

Examples

1
2
3
4
5
6
7
## Not run: 
## Obtain the result from a mass batch query
apikey <- "a valid 32-character ChemSpider apikey"
queryId <- "a valid 36-character ChemSpider queryId"
get_mass_batch_queryId_results(queryId = queryId, apikey = apikey)

## End(Not run)

NIVANorge/chemspideR documentation built on Jan. 8, 2021, 7:48 a.m.