inst/apps/pdf_demo/server.R

server = function(input, output, session) {
  
output$pdfdemo <- renderUI({ 
  withMathJax(HTML(includeMarkdown('backgroundpdf.Rmd')))
})

output$pdfr <- renderUI({ 
  withMathJax(HTML(includeMarkdown('rfuncspdf.Rmd')))
})

output$plotpdf <- renderPlot({
  input$evalpdf
  return(isolate(eval(parse(text=input$pdfplot))))
})
}

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.