aboutsummaryrefslogtreecommitdiff
path: root/inst/examples/caffeine.R
diff options
context:
space:
mode:
Diffstat (limited to 'inst/examples/caffeine.R')
-rw-r--r--inst/examples/caffeine.R4
1 files changed, 3 insertions, 1 deletions
diff --git a/inst/examples/caffeine.R b/inst/examples/caffeine.R
index 29a7e0b..f5711f3 100644
--- a/inst/examples/caffeine.R
+++ b/inst/examples/caffeine.R
@@ -1,3 +1,5 @@
caffeine <- chent$new("caffeine")
print(caffeine)
-plot(caffeine)
+if (requireNamespace("grConvert")) {
+ plot(caffeine)
+}

Contact - Imprint