Bind the same default renderPlot() behavior used by ptr_server().
Advanced users who want to transform the plot should instead write their own
renderPlot() and call ptr_extract_plot().
Examples
if (FALSE) { # \dontrun{
server <- function(input, output, session) {
ps <- ptr_server_state("ggplot(mtcars, aes(x = var)) + geom_histogram()")
ptr_register_draw(input, ps)
ptr_register_plot(output, ps)
}
} # }