From 79123acfdd9a9b905a5b177e2b7aa0d604e52267 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Fri, 19 Nov 2021 00:22:03 +0100 Subject: Add plot example, update static docs --- R/chent.R | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'R/chent.R') diff --git a/R/chent.R b/R/chent.R index d988e97..6983561 100644 --- a/R/chent.R +++ b/R/chent.R @@ -471,6 +471,12 @@ draw_svg.chent = function(x, width = 300, height = 150, #' @param x The chent object to be plotted #' @param ... Further arguments passed to \code{\link{grid.picture}} #' @export +#' @examples +#' caffeine <- chent$new("caffeine") +#' print(caffeine) +#' if (!is.null(caffeine$Picture)) { +#' plot(caffeine) +#' } plot.chent = function(x, ...) { if (is.null(x$Picture)) stop("No Picture object in chent, was RDKit available during creation?") grid.picture(x$Picture) -- cgit v1.2.1