aboutsummaryrefslogtreecommitdiff
path: root/R/chent.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2016-10-13 14:03:19 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2016-10-13 14:03:19 +0200
commit291337e920cc95510fce3c0cdcc62b4443cd3bc4 (patch)
tree63bb8c45d014220427e8bc48250676655527698a /R/chent.R
parent65c481910d65f6935b7f52450ea809586e71d384 (diff)
Fix retrieving pubchem infos for ambiguous names
Diffstat (limited to 'R/chent.R')
-rw-r--r--R/chent.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/chent.R b/R/chent.R
index e170307..fe87d5e 100644
--- a/R/chent.R
+++ b/R/chent.R
@@ -89,7 +89,7 @@ chent <- R6Class("chent",
try_pubchem = function(identifier) {
message("PubChem:")
if (missing(identifier)) identifier <- self$identifier
- pubchem_cids = webchem::get_cid(identifier)
+ pubchem_cids = webchem::get_cid(identifier)[[identifier]]
if (is.na(pubchem_cids[1])) {
message("Query ", identifier, " did not give results at PubChem")

Contact - Imprint