aboutsummaryrefslogtreecommitdiff
path: root/R/chent.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/chent.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