summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml30
-rw-r--r--DESCRIPTION2
-rw-r--r--R/chent.R13
-rw-r--r--man/pai.Rd7
4 files changed, 6 insertions, 46 deletions
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 1b69aab..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-language: c
-sudo: required
-dist: focal
-
-jobs:
- include:
- - name: linux
- os: linux
-
-env:
- global:
- - USE_BSPM="true"
- - RETICULATE_AUTOCONFIGURE="false"
-
-before_install:
- - curl -OLs https://eddelbuettel.github.io/r-ci/run.sh && chmod 0755 run.sh
- - ./run.sh bootstrap
-
-install:
- - ./run.sh install_aptget python3-rdkit
- - ./run.sh install_all
-
-script:
- - ./run.sh run_tests
-
-after_failure:
- - ./run.sh dump_logs
-
-after_success:
- - travis_wait ./run.sh coverage
diff --git a/DESCRIPTION b/DESCRIPTION
index 71c6c42..6a2d597 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -28,5 +28,5 @@ LazyData: yes
Encoding: UTF-8
URL: https://pkgdown.jrwb.de/chents, https://github.com/jranke/chents
Roxygen: list(markdown = TRUE, r6 = TRUE)
-RoxygenNote: 7.3.3
+RoxygenNote: 7.3.3.9000
Config/testthat/edition: 3
diff --git a/R/chent.R b/R/chent.R
index 941c445..a159ece 100644
--- a/R/chent.R
+++ b/R/chent.R
@@ -651,18 +651,11 @@ plot.chent = function(x, ...) {
#' @export
#' @format An [R6::R6Class] generator object
#' @examples
-#' # On Travis, we get a certificate validation error,
-#' # likely because the system (xenial) is so old,
-#' # therefore don't run this example on Travis
-#' if (Sys.getenv("TRAVIS") == "") {
-#'
#' atr <- pai$new("atrazine")
#' print(atr)
#' if (!is.null(atr$Picture)) {
#' plot(atr)
#' }
-#'
-#' }
pai <- R6Class("pai",
inherit = chent,
public = list(
@@ -755,7 +748,11 @@ pai <- R6Class("pai",
#' @param ... Further arguments for compatibility with the S3 method
#' @export
print.pai = function(x, ...) {
- cat("<pai> with ISO common name $iso", x$iso, "\n")
+ if (is.null(x$iso)) {
+ cat("<pai> without ISO common name\n")
+ } else {
+ cat("<pai> with ISO common name $iso", x$iso, "\n")
+ }
print.chent(x)
if (length(x$TPs) > 0) {
cat("\nTransformation products:\n")
diff --git a/man/pai.Rd b/man/pai.Rd
index 279dd24..37508b1 100644
--- a/man/pai.Rd
+++ b/man/pai.Rd
@@ -14,18 +14,11 @@ the complete result of querying the BCPC compendium using
\link[webchem:bcpc_query]{bcpc_query}.
}
\examples{
-# On Travis, we get a certificate validation error,
-# likely because the system (xenial) is so old,
-# therefore don't run this example on Travis
-if (Sys.getenv("TRAVIS") == "") {
-
atr <- pai$new("atrazine")
print(atr)
if (!is.null(atr$Picture)) {
plot(atr)
}
-
-}
}
\section{Super class}{
\code{\link[chents:chent]{chents::chent}} -> \code{pai}

Contact - Imprint