aboutsummaryrefslogtreecommitdiff
path: root/R
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 /R
parent95a067f0ed8fb580cc3652acd4c7885eb000244a (diff)
Only plot when a Picture object is there
grConvert is not needed for plotting
Diffstat (limited to 'R')
-rw-r--r--R/chent.R1
1 files changed, 1 insertions, 0 deletions
diff --git a/R/chent.R b/R/chent.R
index 6a5abc7..c80cf06 100644
--- a/R/chent.R
+++ b/R/chent.R
@@ -463,6 +463,7 @@ draw_svg.chent = function(x, width = 300, height = 150,
#' @example inst/examples/caffeine.R
#' @export
plot.chent = function(x, ...) {
+ if (is.null(x$Picture)) stop("No Picture object in chent, was RDKit available during creation?")
grid.picture(x$Picture)
}

Contact - Imprint