flexdashboard

Understanding why action buttons in Shiny don't work, when using several of them

邮差的信 提交于 2021-02-11 12:23:32
问题 Why when I put together several action button codes from Shiny manual (https://shiny.rstudio.com/articles/action-buttons.html), it DOES NOT run (i.e. no button reacts) ? Each code separately runs fine. How to fix it? (This is relates to this post: Convert Shiny App R code to Rmarkdown Shiny App code: with observeEvent and eventReactive) # Code from https://shiny.rstudio.com/articles/action-buttons.html library(shiny) ui <- fluidPage( # Pattern 1 - Command tags$head(tags$script(src = "message

Convert Shiny App R code to Rmarkdown Shiny App code: with observeEvent and eventReactive

亡梦爱人 提交于 2021-01-29 05:42:34
问题 I want to use Shiny Action buttons in rmarkdown file. Can you help please to rewrite the following code (from https://shiny.rstudio.com/articles/action-buttons.html) into RMarkdown? # Codes from https://shiny.rstudio.com/articles/action-buttons.html library(shiny) ui <- fluidPage( # Pattern 1 - Command tags$head(tags$script(src = "message-handler.js")), actionButton("do", "Click Me"), hr(), # Pattern 2 - Delay reactions actionButton("go", "Go"), numericInput("n", "n", 50), plotOutput("plot2")

Change second tabset on click in flexdashboard

六眼飞鱼酱① 提交于 2021-01-27 05:47:41
问题 I'm working on a self-contained flexdashboard project and I'm wondering if it's possible when a user clicks to a new tab in one tabset, it changes to a new tab on a second tabset as well. So for example, when you click on "Chart B1" below, I would also like to change view to "Chart B2" in the second column. And clicking on "Chart A2" would change back to "Chart A1", etc. etc. --- title: "Untitled" output: flexdashboard::flex_dashboard: orientation: columns vertical_layout: fill --- ```{r

Pass reactives to flexdashboard

夙愿已清 提交于 2020-06-17 08:16:13
问题 I have a large Shiny app, and I would like to provide the possibility to export a flexdashboard report. Thus, I added a downloadHandler which passes certain params to the flexdashboard. The flexdashboard itself should work without being deployed on a server, thus I do not use the runtime: shiny option. How can I pass reactive values to the flexdashboard? If I do something like params <- list(y = test()) , the report creation breaks. Relevant part of server.R: test <- reactive({ [[SOME STUFF]]