diff options
Diffstat (limited to 'inst')
-rw-r--r-- | inst/examples/caffeine.R | 4 | ||||
-rw-r--r-- | inst/examples/octanol.R | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/inst/examples/caffeine.R b/inst/examples/caffeine.R index 29a7e0b..f5711f3 100644 --- a/inst/examples/caffeine.R +++ b/inst/examples/caffeine.R @@ -1,3 +1,5 @@ caffeine <- chent$new("caffeine") print(caffeine) -plot(caffeine) +if (requireNamespace("grConvert")) { + plot(caffeine) +} 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) +} |