get_search | R Documentation |
This function performs a query to search for substances based on a CAS Registry Number or other identifiers.
get_search(q, json = FALSE)
q |
(Character) The (partial) search term. The following search terms are supported: CAS Registry Number (with or without dashes), SMILES (canonical or isomeric), InChI (with or without the "InChI=" prefix), InChIKey, and name. Searching by name allows use of a trailing wildcard (e.g., car*). All searches are case-insensitive. |
json |
(Logical) Should the result be returned as JSON? Defaults to
|
The function performs a sanity check on the provided search term and then performs a query. If successful, a list with the available information will be returned.
Returns a list.
When searching for an InChIKey, the prefix "InChIKey="
needs to
be added.
Raoul Wolf (https://github.com/RaoulWolf/)
## Not run: q <- "Aspiri*" get_search(q) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.