From 95a067f0ed8fb580cc3652acd4c7885eb000244a Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Tue, 19 Feb 2019 18:55:27 +0100 Subject: Skip plotting in examples if grConvert is missing --- inst/examples/octanol.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'inst/examples/octanol.R') diff --git a/inst/examples/octanol.R b/inst/examples/octanol.R index 3e42c38..b13d9ce 100644 --- a/inst/examples/octanol.R +++ b/inst/examples/octanol.R @@ -1,3 +1,5 @@ oct <- chent$new("1-octanol", smiles = "CCCCCCCCO") print(oct) -plot(oct) +if (requireNamespace("grConvert")) { + plot(oct) +} -- cgit v1.2.1