powered by
Return Chemspider ID (CSID) for a search query, see https://www.chemspider.com/.
get_csid(query, token = NULL, first = TRUE, verbose = TRUE, ...)
charachter; search term.
character; your security token.
logical; If TRUE (default) return only first result.
logical; should a verbose output be printed on the console?
currently not used.
if first = TRUE a character vector with ChemSpider IDs, otherwise a list.
cs_compinfo and cs_extcompinfo to retrieve compound details from csid.
cs_compinfo
cs_extcompinfo
# NOT RUN { # Fails because no TOKEN is included token <- '<YOUR-SECURITY-TOKEN>' get_csid("Triclosan", token = token)[[1]] # [1] "5363" get_csid(c("Triclosan", "50-00-0"), token = token) # }
Run the code above in your browser using DataLab