Learn R Programming

webchem (version 0.1.0.0)

cs_csid_mol: Convert a CSID to a Molfile

Description

Convert a CSID to a Molfile

Usage

cs_csid_mol(csid, token, parse = TRUE, verbose = TRUE, ...)

Arguments

csid
character, ChemSpiderID.
token
character; security token.
parse
should the molfile be parsed to a R object? If FALSE the raw mol is returned as string.
verbose
logical; should a verbose output be printed on the console?
...
currently not used.

Value

If parse = FALSE then a charactersting, else a RMol-object (from parse_mol)

See Also

This is a low level function. Please see cs_convert for the top level function.

Examples

Run this code
## Not run: 
# # Fails because no TOKEN is included
# token <- '<YOUR-SECURITY-TOKEN>'
# # convert CAS to CSID
# tric_mol <- cs_csid_mol(5363, token = token)
# tric_mol
# cs_csid_mol(5363, token = token, parse = FALSE)
# ## End(Not run)

Run the code above in your browser using DataLab