inst/appdir/pages/plot.R

plotUI = function(id) {

    ns = shiny::NS(id)
    tagList(
        fluidRow(
            h2('My plot'),
            plotOutput(ns('myplot'))
        )
    )
}
plotServer = function(input, output, session) {
    output$myplot = renderPlot({
        plot(1:20)
    })
}
cmdcolin/shinytemplate documentation built on May 13, 2019, 8:23 p.m.