From b883e6075bd76f979fbffdb768313665681315a0 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Tue, 19 Feb 2019 20:17:59 +0100 Subject: Only plot when a Picture object is there grConvert is not needed for plotting --- man/plot.chent.Rd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'man/plot.chent.Rd') diff --git a/man/plot.chent.Rd b/man/plot.chent.Rd index a406533..f2850fa 100644 --- a/man/plot.chent.Rd +++ b/man/plot.chent.Rd @@ -17,7 +17,7 @@ Plot method for chent objects \examples{ caffeine <- chent$new("caffeine") print(caffeine) -if (requireNamespace("grConvert")) { +if (!is.null(caffeine$Picture)) { plot(caffeine) } } -- cgit v1.2.1