diff options
author | Ranke Johannes <johannes.ranke@agroscope.admin.ch> | 2024-08-05 18:41:45 +0200 |
---|---|---|
committer | Ranke Johannes <johannes.ranke@agroscope.admin.ch> | 2024-08-05 18:41:45 +0200 |
commit | 1b58327278038a1111a88c521e6992c15e0b17ea (patch) | |
tree | 8efca42ba93dbb1c214e45b38b44e5a669375ee7 /R | |
parent | 533570776daf567afa543fdfb19db2c8aa4616f8 (diff) |
Set identifiers to NA if not initialized, add NEWS
Diffstat (limited to 'R')
-rw-r--r-- | R/chent.R | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -138,6 +138,21 @@ chent <- R6Class("chent", if (chyaml) { self$get_chyaml() } + + # Define main identifiers as NA if still not available + if (is.null(self$smiles)) { + self$smiles <- NA + attr(self$smiles, "source") <- "user" + } + if (is.null(self$inchikey)) { + self$inchikey<- NA + attr(self$inchikey, "source") <- "user" + } + if (is.null(self$mw)) { + self$mw<- NA + attr(self$mw, "source") <- "user" + } + invisible(self) }, |