aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2019-02-19 20:17:59 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2019-02-19 20:17:59 +0100
commitb883e6075bd76f979fbffdb768313665681315a0 (patch)
treecc3f14824db202513bf632f817e8439ae72ae5d8 /man
parent95a067f0ed8fb580cc3652acd4c7885eb000244a (diff)
Only plot when a Picture object is there
grConvert is not needed for plotting
Diffstat (limited to 'man')
-rw-r--r--man/chent.Rd4
-rw-r--r--man/plot.chent.Rd2
2 files changed, 3 insertions, 3 deletions
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)
}
}
diff --git a/man/plot.chent.Rd b/man/plot.chent.Rd
index a406533..f2850fa 100644
--- a/man/plot.chent.Rd
+++ b/man/plot.chent.Rd
@@ -17,7 +17,7 @@ Plot method for chent objects
\examples{
caffeine <- chent$new("caffeine")
print(caffeine)
-if (requireNamespace("grConvert")) {
+if (!is.null(caffeine$Picture)) {
plot(caffeine)
}
}

Contact - Imprint