View source: R/chemical-APIs.R
| get_chemical_mol | R Documentation | 
Get mol file by DTXSID or DTXCID
get_chemical_mol(
  DTXSID = NULL,
  DTXCID = NULL,
  API_key = NULL,
  Server = chemical_api_server,
  verbose = FALSE
)
DTXSID | 
 Chemical identifier DTXSID  | 
DTXCID | 
 Chemical identifier DTXCID  | 
API_key | 
 The user-specific API key  | 
Server | 
 The root address for the API endpoint  | 
verbose | 
 A logical indicating if some “progress report” should be given.  | 
A character string giving a mol file representation
# Pull mol file for BPA by dtxsid
bpa_mol <- get_chemical_mol(DTXSID = 'DTXSID7020182')
# Pull mol file for BPA by dtxcid
bpa_mol <- get_chemical_mol(DTXCID = 'DTXCID30182')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.