inst/apps/hazard_demo/server.R

server = function(input, output, session) {
  
output$hazdemo <- renderUI({ add_rmd('backgroundhaz.Rmd') })

output$hazr <- renderUI({ add_rmd('rfuncshaz.Rmd') })

output$plothaz <- renderPlot({
      input$evalhaz
      return(isolate(eval(parse(text=input$hazplot))))
})

output$plotfigbt <- renderPlot({
      input$evalfigbt
      return(isolate(eval(parse(text=input$figbtplot))))
})
}

Try the teachingApps package in your browser

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

teachingApps documentation built on July 1, 2020, 5:58 p.m.