From 4e092707e70adac492b74197e6ceef5cdd09cc8d Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 5 Mar 2026 11:09:31 +0100 Subject: Bump version for improved pai printing method Also, improve the example demonstrating pais not found at BCPC --- DESCRIPTION | 4 +- NEWS.md | 4 ++ R/chent.R | 3 + docs/404.html | 2 +- docs/authors.html | 10 ++-- docs/index.html | 64 +++++++++++++++------ docs/news/index.html | 6 +- docs/reference/chent.html | 17 ++++-- docs/reference/figures/README-caffeine-1.png | Bin 0 -> 23057 bytes docs/reference/figures/README-plot-caffeine-1.png | Bin 0 -> 6346 bytes .../reference/figures/README-unnamed-chunk-3-1.png | Bin 0 -> 17761 bytes .../reference/figures/README-unnamed-chunk-4-1.png | Bin 0 -> 6346 bytes .../reference/figures/README-unnamed-chunk-5-1.png | Bin 0 -> 7461 bytes docs/reference/index.html | 2 +- docs/reference/pai.html | 51 ++++++++++------ docs/search.json | 2 +- log/build.log | 2 +- man/pai.Rd | 3 + 18 files changed, 114 insertions(+), 56 deletions(-) create mode 100644 docs/reference/figures/README-caffeine-1.png create mode 100644 docs/reference/figures/README-plot-caffeine-1.png create mode 100644 docs/reference/figures/README-unnamed-chunk-3-1.png create mode 100644 docs/reference/figures/README-unnamed-chunk-4-1.png create mode 100644 docs/reference/figures/README-unnamed-chunk-5-1.png diff --git a/DESCRIPTION b/DESCRIPTION index 6a2d597..9550f72 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: chents Type: Package Title: Chemical Entities as R Objects -Version: 0.4.0 -Date: 2025-10-22 +Version: 0.4.1 +Date: 2026-03-05 Authors@R: c(person("Johannes", "Ranke", role = c("aut", "cre", "cph"), email = "johannes.ranke@jrwb.de")) Description: Utilities for dealing with chemical entities and associated diff --git a/NEWS.md b/NEWS.md index 07af04e..6ec85a4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +## version 0.4.1 + +- R/chent.R: Improve print method for `pai` objects. + ## version 0.4.0 - R/chent.R: PubChem has changed the names of the SMILES codes they provide. The former isomeric smiles that was incorporated in our chent objects as "Pubchem_Isomeric" is now simply calles SMILES, and is incorporated in our objects as "PubChem". The SMILES code formerly given as "canonical" is now termed "connectivity SMILES" because it does not contain isotopic or stereochemical specifications. In the chents object, it is now available under the name "PubChem_Connectivity". This is a breaking change, so objects generated with versions < 0.4.0 may produce errors when used with current versions. diff --git a/R/chent.R b/R/chent.R index a159ece..05066b8 100644 --- a/R/chent.R +++ b/R/chent.R @@ -656,6 +656,9 @@ plot.chent = function(x, ...) { #' if (!is.null(atr$Picture)) { #' plot(atr) #' } +#' # We can also define pais that are not found on the BCPC site +#' decanol <- pai$new("1-Decanol") +#' print(decanol) pai <- R6Class("pai", inherit = chent, public = list( diff --git a/docs/404.html b/docs/404.html index 9712405..80410c2 100644 --- a/docs/404.html +++ b/docs/404.html @@ -20,7 +20,7 @@ chents - 0.4.0 + 0.4.1