powered by
Takes molecular formula, and scours PubChem and/or ChemSpider for compounds matching that formula.
searchFormulaWeb( formulas, search = c("pubchem", "chemspider", "knapsack", "supernatural2", "chemidplus"), apikey = "", detailed = TRUE )
Character vector of formulas to check
Which databases to check?, Default: c("PubChem", "ChemSpider")
API key for ChemSpider
Find detailed results? Not just the compound name, but other associated info?, Default: FALSE
Data table with match results.
pbapply as.data.table,rbindlist check_chemform fn str_extract,str_match readHTMLTable list.clean read_json POST,add_headers,content_type,content,GET fromJSON
pbapply
as.data.table
rbindlist
check_chemform
fn
str_extract
str_match
readHTMLTable
list.clean
read_json
POST
add_headers
content_type
content
GET
fromJSON
# NOT RUN { searchFormulaWeb(formulas = c("C6H12O6"), search = c("pubchem", "chemspider", "knapsack", "supernatural2", "chemidplus"), detailed = TRUE) # }
Run the code above in your browser using DataLab