cs_img | R Documentation |
Retrieve images of substances from ChemSpider and export them in PNG format.
cs_img(
csid,
dir,
overwrite = TRUE,
apikey = NULL,
verbose = getOption("verbose")
)
csid |
numeric; the ChemSpider ID (CSID) of the substance. This will also be the name of the image file. |
dir |
character; the download directory. |
overwrite |
logical; should existing files in the directory with the same name be overwritten? |
apikey |
character; your API key. If NULL (default),
|
verbose |
logical; should a verbose output be printed on the console? |
An API key is needed. Register at https://developer.rsc.org/ for an API key. Please respect the Terms & Conditions. The Terms & Conditions can be found at https://developer.rsc.org/terms.
https://developer.rsc.org/docs/compounds-v1-trial/1/overview
get_csid
, cs_check_key
## Not run:
cs_img(c(582, 682), dir = tempdir())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.