Learn R Programming

webchem (version 1.0.0)

cs_datasources: Retrieve ChemSpider data sources

Description

The function returns a vector of available data sources used by ChemSpider. Some ChemSpider functions allow you to restrict which sources are used to lookup the requested query. Restricting the sources makes these queries faster.

Usage

cs_datasources(apikey = NULL)

Arguments

apikey

character; your API key. If NULL (default), cs_check_key() will look for it in .Renviron or .Rprofile.

Value

Returns a character vector.

References

https://developer.rsc.org/compounds-v1/apis

Examples

Run this code
# NOT RUN {
cs_datasources()
# }

Run the code above in your browser using DataLab