Questions tagged [shiny-reactivity]

A key aspect of Shiny apps is reactivity - the illusion that the application is interactive.

A key aspect of Shiny apps is reactivity - the illusion that the application is interactive. See http://shiny.rstudio.com/articles/reactivity-overview.html

972 questions
0
votes
1 answer

htmlOutput or data table. Which does not refresh properly?

I am trying to figure out what is wrong with my code.. Here what is going on: When I run it for the first time and click on data table row I can see all character information as they should be. But then when I am selecting several other observations…
krakowi
  • 583
  • 5
  • 17
0
votes
1 answer

Two action buttons, but only the first one, that is written in the server file, works?

In the following code I have two reactive functions, say A and B (which I want to control via an isolate function and two action buttons), but only A works at all. If I change the order of the functions (I mean, I first write B and then A), then B…
Rodrigo Guinea
  • 328
  • 4
  • 16
0
votes
1 answer

R Shiny: The for loop output available for many render*() functions

What I want to do is to make the output from the for loop run available for many render outputs in Shiny App. I created the simple example of my problem. There is the same for loop in each renderPrint() function. Can I code that in such a way that…
Zofia
  • 25
  • 4
0
votes
1 answer

Write.csv using Action buttons

So basically I am trying to make a small setup of sorts and once a certain analysis is done, I would want to export a certain dataset generated to a predefined location and a predefined name (based on the inputs selected earlier). For this purpose,…
Dan Schmidt
  • 117
  • 1
  • 2
  • 10
0
votes
0 answers

Rendering a reactive leaflet object in Shiny

I am building a shiny app in which I have a leafletOutput in my UI named Florida_leaflet. In my server, I have my_leaflet <- reactive({ if (input$speciesSelect == "ACR CERV" & input$yearSelect == "2016") { my_leaflet <-…
John Smith
  • 393
  • 1
  • 6
  • 17
0
votes
1 answer

R Shiny selectInput Reactivity

In my Shiny app, I have a selectInput named bob in my UI with choices "A", "B", "C". At the top of my server (before anything else) I have observe({ bob_value <- reactive({ if (input$bob == "A") {bob_value <- "A" } else if…
John Smith
  • 393
  • 1
  • 6
  • 17
0
votes
1 answer

Can ReactiveValues() remove a plotOutput object?

I apologize for not having a specific reproducible example, and I hope my question is not too generic. I was wondering whether it is possible in R shiny to use reactiveValues() to remove a plotOutput object. In particular, can I have something…
John Smith
  • 393
  • 1
  • 6
  • 17
0
votes
0 answers

R shiny selectInput reactivity issues

I recently asked a question about issues with reactivity in Shiny, and I modified my code due to the comments I received, but I still cannot get it to work. As I mentioned before, I know that without the reactivity, the plot works, so it's…
John Smith
  • 393
  • 1
  • 6
  • 17
0
votes
1 answer

shiny update plot based on data.table

in my example app I have the user give some input and generate a data.table from it in the first tab. in the second tab I would like to show the plot, depending on the data.table. I am having quite a hard time to get the reactivity right.…
Rivka
  • 307
  • 1
  • 5
  • 19
0
votes
0 answers

condition has length > 1” warning from `if` function

I want to select best policy using MDPtoolbox in R and I have used shiny R , I defined a global variable of state in global.r as follows to identify the states: state<-c("s0","s1","s2","s3") I wrote a reactive function of BestAction to select the…
user
  • 592
  • 6
  • 26
0
votes
1 answer

convert Datatable to csv file in R

I uploaded an excel file into shiny R using following code: Server.r #reative function to read a table MDPData<-reactive({ file1<-input$MDPhistorical if(is.null(file1)){return()} z<-as.data.frame(read.xlsx(file1$datapath,sheetName =…
user
  • 592
  • 6
  • 26
0
votes
1 answer

How to update the contents of htmlOutput in shiny using JavaScript

A shiny app displays a sentence. When a user selects some part of sentence and clicks the Mark button to add markup, the sentence should be updated to reflect the action. Example: Sample input: A sample sentence for demo Selection: sentence…
Imran Ali
  • 2,223
  • 2
  • 28
  • 41
0
votes
0 answers

How can I unpick the renderPlot() function in shinyr with ggplot

Below is functioning code for a basic shiny app that allows the user to pick a column and then plots a ggplot::histogram() of the selected column: library(shiny) # Define UI for application that draws a histogram ui <- fluidPage( …
Kevin Burnham
  • 553
  • 2
  • 13
0
votes
0 answers

R Shiny: Removing item from renderPlot and referring to it again

I have code inside the renderPlot option of a shiny app that I would like the pull into a separate reactive context. However, I'm having trouble figuring out how to do so and still be able to refer to the table. What I want is to be able to pull…
Jautis
  • 459
  • 6
  • 13
0
votes
1 answer

How to build a dynamic filter in R Shiny?

I am building an App with an upload function and a filter function for category variables. That way, users are able to do a bit of data manipulation by specifying columns and values. However, the filter function does not work. The code is simplified…
tonykuoyj
  • 81
  • 3
  • 10
1 2 3
64
65