Auto-translate identifiers and search databasesSource:
Supply a query of any type (e.g. SMILES, CAS, name, InChI, etc.) along with
any webchem function that has
from arguments. If the
function doesn't accept the type of query you've supplied, this will try to
automatically translate it using CTS and run the query.
with_cts(query, from, .f, .verbose = getOption("verbose"), ...)
character; the search term
character; the format or type of query. Commonly accepted values are "name", "cas", "inchi", and "inchikey"
character; the (quoted) name of a webchem function
logical; print a message when translating query?
other arguments passed to the function specified with
During the translation step, only the first hit from CTS is used. Therefore, using this function to translate on the fly is not foolproof and care should be taken to verify the results.