shinyapps

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")

Automatic re-reading of the source file with shinyapps.io

末鹿安然 提交于 2021-01-28 04:50:47
问题 I have an application, where I need to update the source data periodically. Source datafile is a csv file normally stored in the project directory and read with read.csv. The csv. file is changed every day with the updates. The name of the file does not change...just few cases are added. I need the application to re-read the source pdf file with some periodicity (e.g. once per day). I can do it with reactiveFileReader function and it works when I am running the application from Rstudio, but

Error deploying shiny app that uses fileInput to upload data

随声附和 提交于 2021-01-27 04:20:59
问题 Deploying my first shiny app -- simple html parser that lets users upload an html file and then parses it to get info on shares/mentions/likes on LinkedIn. The app runs fine locally (tested before deployment) and Rstudio does not show any errors with deployment. However, when I run it using the shinyapps link it appears the upload fails to complete and I don't get any output. What it looks like locally Opening App Uploading an .html file What it looks like on shinyapps.io I've redacted the

How to get the current URL for Shiny App?

别来无恙 提交于 2020-12-15 04:33:00
问题 When I run a shiny application on RStudio, my app runs and the URL looks like this: Listening on http://127.0.0.1:4991 But each time I run again the app, the port changes, I wonder if there is a way to obtain the url as a variable or something like that. I mean, each time that I run the app, I want to obtain the URL and save it in a variable. Thank you 回答1: You can specify the port using options: #example: https://shiny.rstudio.com/articles/basics.html options(shiny.host = '0.0.0.0') options

How to get the current URL for Shiny App?

感情迁移 提交于 2020-12-15 04:32:19
问题 When I run a shiny application on RStudio, my app runs and the URL looks like this: Listening on http://127.0.0.1:4991 But each time I run again the app, the port changes, I wonder if there is a way to obtain the url as a variable or something like that. I mean, each time that I run the app, I want to obtain the URL and save it in a variable. Thank you 回答1: You can specify the port using options: #example: https://shiny.rstudio.com/articles/basics.html options(shiny.host = '0.0.0.0') options

How to hide or display charts in shiny dashboardBody based on radioGroupButton selection

安稳与你 提交于 2020-08-08 04:06:13
问题 I am trying to create this dashboard with following structure. It basic structure has 3 levels (Menu, sub Menu and radioGroupButton selection) SideBar: Menu1: has 2 sub menus (Sub Menu 1 and Sub Menu2) Menu2 has 2 sub menus (Sub Menu 3 and Sub Menu4) The body has radioGroupButton that has 2 choices dashBoardBody: RadioGroupButton: Choice 1 and Choice 2 So when the user clicks Sub Menu1 and clicks Choice 1 then I need to display #A1 Sub Menu1 and clicks Choice 2 then I need to display #A2 Sub

How to hide or display charts in shiny dashboardBody based on radioGroupButton selection

孤街浪徒 提交于 2020-08-08 04:06:11
问题 I am trying to create this dashboard with following structure. It basic structure has 3 levels (Menu, sub Menu and radioGroupButton selection) SideBar: Menu1: has 2 sub menus (Sub Menu 1 and Sub Menu2) Menu2 has 2 sub menus (Sub Menu 3 and Sub Menu4) The body has radioGroupButton that has 2 choices dashBoardBody: RadioGroupButton: Choice 1 and Choice 2 So when the user clicks Sub Menu1 and clicks Choice 1 then I need to display #A1 Sub Menu1 and clicks Choice 2 then I need to display #A2 Sub