jranke / chents
Showing 1 of 6 files from the diff.
Other files ignored by Codecov
DESCRIPTION has changed.
ChangeLog has changed.
GNUmakefile has changed.
test.log has changed.

@@ -110,15 +110,11 @@
Loading
110 110
    try_pubchem = function(query, from = 'name') {
111 111
      message("PubChem:")
112 112
      if (missing(query)) query <- self$identifier
113 -
      pubchem_result = webchem::get_cid(query, from = from)
113 +
      pubchem_result = webchem::get_cid(query, from = from, match = "first")
114 114
115 -
      if (is.na(pubchem_result[[1]][1])) {
115 +
      if (is.na(pubchem_result[[1, "cid"]])) {
116 116
        message("Query ", query, " did not give results at PubChem")
117 117
      } else {
118 -
        n_results = length(pubchem_result[[1]])
119 -
        if (n_results > 1) {
120 -
          warning("Found ", n_results, " entries in PubChem, using the first one.")
121 -
        }
122 118
        self$get_pubchem(pubchem_result[[1, "cid"]])
123 119
      }
124 120
    },
@@ -511,7 +507,7 @@
Loading
511 507
512 508
      if (!missing(iso) & alanwood) {
513 509
        message("alanwood.net:")
514 -
        aw_result = webchem::aw_query(identifier, type = "commonname")
510 +
        aw_result = webchem::aw_query(identifier, from = "name")
515 511
516 512
        # Use first element of list, as we passed a query of length one
517 513
        if (is.na(aw_result[[1]][1])) {
Files Coverage
R/chent.R 22.62%
Project Totals (1 files) 22.62%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading