inst/apps/example1_1/server.R

server = function(input, output, session) {
  
output$example1.1 <- renderUI({ SMRD::add_rmd('background.Rmd') })
  
output$lzbearing <- DT::renderDataTable({ DT::datatable(SMRD::lzbearing,
                                                       options = list(pageLength = 10)) })
  
output$plotfig1 <- renderPlot({
      par(oma = c(0,0,0,0), mar = c(4,4,2,2))
      input$evalfig1
      return(isolate(eval(parse(text=input$fig1plot))))
})
output$plotfig2 <- renderPlot({
      par(oma = c(0,0,0,0), mar = c(4,4,2,2))
      input$evalfig2
      return(isolate(eval(parse(text=input$fig2plot))))
})
}
Auburngrads/SMRD documentation built on Sept. 14, 2020, 2:21 a.m.