inst/apps/example1_5/server.R

server = function(input, output, session) {
  
  output$example1.5 <- renderUI({ 
  withMathJax(HTML(includeMarkdown('background.Rmd')))
})
   
  output$heatexchanger <- DT::renderDataTable({ DT::datatable(SMRD::heatexchanger,
                                                       options = list(pageLength = 10)) })
  
  output$plotfig6 <- renderPlot({
      par(mar = c(0,0,0,0))
      input$evalfig6
      return(isolate(eval(parse(text=input$fig6plot))))
})
  
  output$plotfig7 <- renderPlot({
      par(mar = c(0,0,0,0))
      input$evalfig7
      return(isolate(eval(parse(text=input$fig7plot))))
})
}
Auburngrads/SMRD documentation built on Sept. 14, 2020, 2:21 a.m.