aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--R/chent.R2
-rw-r--r--tests/testthat/test_pai.R1
2 files changed, 3 insertions, 0 deletions
diff --git a/R/chent.R b/R/chent.R
index 6983561..7f61801 100644
--- a/R/chent.R
+++ b/R/chent.R
@@ -495,11 +495,13 @@ plot.chent = function(x, ...) {
#' @field bcpc List of information retrieved from pesticidecompendium.bcpc.org
#' @keywords data
#' @examples
+#' \donttest{
#' atr <- pai$new("atrazine")
#' print(atr)
#' if (!is.null(atr$Picture)) {
#' plot(atr)
#' }
+#' }
pai <- R6Class("pai",
inherit = chent,
diff --git a/tests/testthat/test_pai.R b/tests/testthat/test_pai.R
index e22b6ae..518fc56 100644
--- a/tests/testthat/test_pai.R
+++ b/tests/testthat/test_pai.R
@@ -5,6 +5,7 @@ require(testthat)
context("Generation of pai objects")
test_that("a pai object is correctly generated from an ambiguous name", {
+ skip_on_travis() # server certificate verification failed in curl_fetch_memory()
glyphosate <- pai$new("glyphosate", chyaml = FALSE)
expect_message(pai$new("benzalkonium chloride", chyaml = FALSE), "did not give results")

Contact - Imprint