Last data update: 2014.03.03

R: Convert a CSID to a Molfile
cs_csid_molR Documentation

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)

Note

A security token is neeeded. Please register at RSC https://www.rsc.org/rsc-id/register for a security token.

Author(s)

Eduard Szoecs, eduardszoecs@gmail.com

See Also

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

Examples

## 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)

Results