Shiny

How to solve deployment error on shinnyappsio?

北城以北 提交于 2021-01-27 12:56:26
问题 I am trying to deploy my dashboard from Rstudio IDE by clicking Publish, but it returned me below error message: Error in inferAppPrimaryDoc(appPrimaryDoc = appPrimaryDoc, appFiles = appFiles, : Application mode static requires at least one document. Calls: ... withStatus -> force -> bundleApp -> inferAppPrimaryDoc Execution halted When I checked my shinyappsio dashboard, the apps was uploaded there but when clicked the url it showed 202 not found. Can someone help me to solve this issue?

How to prevent shiny plot from being redrawn multiple times per UI interaction?

旧城冷巷雨未停 提交于 2021-01-27 10:19:40
问题 In my shiny app I have a date range input and a group of checkboxes. The checkbox choices are determined based on the input$dateRange. I'm running into an issue where the plot is being redrawn twice every time the date range is changed. The first time it is redrawn it will use the new date ranges, but the old checkbox choices. Then the checkbox choices are updated and the plot is redrawn a second time. Is there any way to prevent redrawing the plot multiple times and only have it drawn once

How to run user input as R code in a Shiny app?

青春壹個敷衍的年華 提交于 2021-01-27 06:03:00
问题 I want to create a shiny application that has an input for writing some R function or Command, reads it through the ui.R then passes it to the server.R that executes that R command to display the results. I spent hours searching about some example but couldn't find anything, I already know how to create Shiny apps using ui and server and pass the input values to server and work with them, but I have no idea if it's possible to create a shiny app like R where you can write the commands and

How to run user input as R code in a Shiny app?

↘锁芯ラ 提交于 2021-01-27 06:00:49
问题 I want to create a shiny application that has an input for writing some R function or Command, reads it through the ui.R then passes it to the server.R that executes that R command to display the results. I spent hours searching about some example but couldn't find anything, I already know how to create Shiny apps using ui and server and pass the input values to server and work with them, but I have no idea if it's possible to create a shiny app like R where you can write the commands and

R Shiny: How can I return reactive values from a shiny module to the master server function?

人盡茶涼 提交于 2021-01-27 04:50:00
问题 I have a simple toy example that uses an add/removeBtn module to add and remove UI from "first" module. I need to keep track of the number of times add/remove has been clicked. If I do not use modules, it is easy, but I am trying to do this in the context of nested modules. Code is below, but basically, I cannot seem to get access to the return from the addRmBtnServer() in the main server function. I am sure it is a simple fix, but I have tried many ways around this, but cannot seem to get

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

R Shiny radioButtons how to change the colors of some of the choices?

梦想与她 提交于 2021-01-24 12:29:59
问题 ui <- fluidPage( radioButtons("dist", "Distribution type:", c("Normal" = "norm", "Uniform" = "unif", "Log-normal" = "lnorm", "Exponential" = "exp"))) server <- function(input, output) {} I would like the font colors of "Normal" and "Uniform" to be different than those of the other choices. Let's say the color of the first two choices should be red. Anyone who can achieve that? 回答1: Just look at the examples in ?radioButtons . This will give you instructions on how to apply HTML tags to

R Shiny radioButtons how to change the colors of some of the choices?

落花浮王杯 提交于 2021-01-24 12:29:04
问题 ui <- fluidPage( radioButtons("dist", "Distribution type:", c("Normal" = "norm", "Uniform" = "unif", "Log-normal" = "lnorm", "Exponential" = "exp"))) server <- function(input, output) {} I would like the font colors of "Normal" and "Uniform" to be different than those of the other choices. Let's say the color of the first two choices should be red. Anyone who can achieve that? 回答1: Just look at the examples in ?radioButtons . This will give you instructions on how to apply HTML tags to

R Shiny radioButtons how to change the colors of some of the choices?

送分小仙女□ 提交于 2021-01-24 12:29:03
问题 ui <- fluidPage( radioButtons("dist", "Distribution type:", c("Normal" = "norm", "Uniform" = "unif", "Log-normal" = "lnorm", "Exponential" = "exp"))) server <- function(input, output) {} I would like the font colors of "Normal" and "Uniform" to be different than those of the other choices. Let's say the color of the first two choices should be red. Anyone who can achieve that? 回答1: Just look at the examples in ?radioButtons . This will give you instructions on how to apply HTML tags to

Remove all/none checkbox from Reactable table in Shiny app

假如想象 提交于 2021-01-20 13:00:24
问题 I wish to remove the all/none checkbox from a Reactable table used in a Shiny app. For a regular R script, an answer was suggested here. However this solution fails with: Warning in renderWidget(instance) : Ignoring prepended content; prependContent can't be used in a Shiny render call The code below fails to remove the checkbox with the error mentioned above. So, how do I remove the all/none checkbox of a Reactable table in a Shiny app. library(reactable) library(htmlwidgets) javascript <-