pandoc version 1.12.3 or higher is required and was not found (R shiny)

Go into RStudio and find the system environment variable for RSTUDIO_PANDOC Sys.getenv(“RSTUDIO_PANDOC”) Then put that in your R script prior to calling the render command. Sys.setenv(RSTUDIO_PANDOC=”— insert directory here —“) This worked for me after I’d been struggling to find how rmarkdown finds pandoc. I had to check github to look at the source.

Shiny: what is the difference between observeEvent and eventReactive?

As @daatali is saying the two functions are used for different purposes. ui <- shinyUI(pageWithSidebar( headerPanel(“eventReactive and observeEvent”), sidebarPanel( actionButton(“evReactiveButton”, “eventReactive”), br(), actionButton(“obsEventButton”, “observeEvent”), br(), actionButton(“evReactiveButton2”, “eventReactive2”) ), mainPanel( verbatimTextOutput(“eText”), verbatimTextOutput(“oText”) ) )) server <- shinyServer(function(input, output) { etext <- eventReactive(input$evReactiveButton, { runif(1) }) observeEvent(input$obsEventButton,{ output$oText <- renderText({ runif(1) }) }) eventReactive(input$evReactiveButton2,{ print(“Will not print”) … Read more