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 --- man/chent.Rd | 8 ++++++-- man/plot.chent.Rd | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'man') diff --git a/man/chent.Rd b/man/chent.Rd index 8d85de1..a90a3b3 100644 --- a/man/chent.Rd +++ b/man/chent.Rd @@ -55,9 +55,13 @@ configured for use with PythonInR} \examples{ oct <- chent$new("1-octanol", smiles = "CCCCCCCCO") print(oct) -plot(oct) +if (requireNamespace("grConvert")) { + plot(oct) +} caffeine <- chent$new("caffeine") print(caffeine) -plot(caffeine) +if (requireNamespace("grConvert")) { + plot(caffeine) +} } \keyword{data} diff --git a/man/plot.chent.Rd b/man/plot.chent.Rd index 416675d..a406533 100644 --- a/man/plot.chent.Rd +++ b/man/plot.chent.Rd @@ -17,5 +17,7 @@ Plot method for chent objects \examples{ caffeine <- chent$new("caffeine") print(caffeine) -plot(caffeine) +if (requireNamespace("grConvert")) { + plot(caffeine) +} } -- cgit v1.2.1