cs_check_key: Retrieve ChemSpider API key

View source: R/chemspider.R

cs_check_keyR Documentation

Retrieve ChemSpider API key


Look for and retrieve ChemSpider API key stored in .Renviron or .Rprofile.




To use the any of the functions in webchem that access the ChemSpider database, you'll need to obtain an API key. Register at https://developer.rsc.org/ for an API key. Please respect the Terms & Conditions https://developer.rsc.org/terms.

You can store your API key as CHEMSPIDER_KEY = <your key> in .Renviron or as options(chemspider_key = <your key>) in .Rprofile. This will allow you to use ChemSpider without adding your API key in the beginning of each session, and will also allow you to share your analysis without sharing your API key. Keeping your API key hidden is good practice.


an API key

See Also

edit_r_environ edit_r_profile


## Not run: 

## End(Not run)

webchem documentation built on July 9, 2023, 5:30 p.m.