shiny-server
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
Hosting and setting up own shiny apps without shiny server
If your PC and your coworkers PCs belong to the same LAN, this is pretty easy to achieve. Just run your app through: runApp(host = “0.0.0.0”, port = 5050) The value set through the host argument says to accept any connection (not just from localhost). The port argument can assume any value that you want … Read more