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 --- inst/examples/octanol.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inst/examples/octanol.R') diff --git a/inst/examples/octanol.R b/inst/examples/octanol.R index b13d9ce..8818836 100644 --- a/inst/examples/octanol.R +++ b/inst/examples/octanol.R @@ -1,5 +1,5 @@ oct <- chent$new("1-octanol", smiles = "CCCCCCCCO") print(oct) -if (requireNamespace("grConvert")) { +if (!is.null(caffeine$Picture)) { plot(oct) } -- cgit v1.2.1