R/renderProcessMap.R

Defines functions renderProcessMap

Documented in renderProcessMap

#' @title Widget render function for use in Shiny
#' @param expr an expression that generates a DiagrammeR graph.
#' @param env the environment in which to evaluate expr.
#' @param quoted is expr a quoted expression (with quote())?
#' This is useful if you want to save an expression in a variable.
#' @name renderProcessMap
#' @export

renderProcessMap <- function(expr, env = parent.frame(), quoted = FALSE) {
	if (!quoted) expr <- substitute(expr)

	DiagrammeR::renderGrViz(expr, env, quoted = TRUE)
}

Try the processmapR package in your browser

Any scripts or data that you put into this service are public.

processmapR documentation built on Sept. 11, 2024, 8:08 p.m.