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/chent.Rd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'man/chent.Rd') diff --git a/man/chent.Rd b/man/chent.Rd index a90a3b3..73cb728 100644 --- a/man/chent.Rd +++ b/man/chent.Rd @@ -55,12 +55,12 @@ configured for use with PythonInR} \examples{ oct <- chent$new("1-octanol", smiles = "CCCCCCCCO") print(oct) -if (requireNamespace("grConvert")) { +if (!is.null(caffeine$Picture)) { plot(oct) } caffeine <- chent$new("caffeine") print(caffeine) -if (requireNamespace("grConvert")) { +if (!is.null(caffeine$Picture)) { plot(caffeine) } } -- cgit v1.2.1