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
0 answers

Shiny failed to connect to ODBC

I am trying to have Shiny connects to Teradata. Below is the code I have but I always get "ERROR: [on_request_read] connection reset by peer" after I choose the indicator and click the action button. Appreciated any input for this. Thanks. …
May Y
  • 179
  • 1
  • 20
0
votes
1 answer

Cannot call input$"OptionType1"

I am trying to create dynamic UI in my Shiny app. I increment a variable (dealNumber) every time I add an input via a button. However, I need to get the values from these new inputs. I add the value of dealNumber to the IDs of each input. However, I…
Mbala
  • 13
  • 4
0
votes
0 answers

Q: R Shiny Reactivity, 1 of 2 events

I have code that works when updating shiny, but I would like to change the event handling to occur when 1 of 2 events occurs rather than when both events occur. Right now, the user must update both drop-down menus for graphs to update…
0
votes
1 answer

filter data from API using selectInput in Shiny

since many days I can't solve my problem. At the beginning I get some data from API (I refresh API call every 5 sec to get the newest data). The data contain information about locations (lat and long) and some labels written to those locations. I…
boplight
  • 93
  • 2
  • 8
0
votes
0 answers

Right Side Bar handling in R Shiny

I am using library(ygdashboard) from here for build a Right Side control bar in Shiny Apps. Which most like AdminLTE.io template. In AdminLTE.io Right Side Control Bar there is an option,by enabling it the content part will adjust the width and…
Subhasish1315
  • 938
  • 1
  • 10
  • 25
0
votes
2 answers

Refresh selectInput on shiny DropDownList retrieved from RODBC

I have a reactive input in ShinyUI Tab1: selectInput("SelectVar", choices = DropDownListForVar()) ,where DropDownListForVar()) = function (){ sqlQuery = return ( Connection, "Select var from dbo.Variables") } ## using RODBC library In my…
L_TS
  • 1
  • 1
0
votes
1 answer

The networkd3 is displaying all data, not the subset I want to show based on widget inputs in Shiny app

I am trying to make a Shiny app where the user selects a few options and a network and data table will display based on the inputs. I have a diet study database and would like users to be able to specify the predator species they are interested in,…
M.Oshima
  • 1
  • 1
0
votes
2 answers

How to generate a character of code colors using colors picker

I'm aiming to generate a text list of chosen color codes like "#A020F0", "#864BAB", "#4BFF14" in shiny. I'm using a color picker from the colourpicker package. What I want is that whenever the user selects a color and press the button the code of…
Ali Fradi
  • 110
  • 1
  • 10
0
votes
1 answer

R shiny: Cannot delete last value in SelectizeInput

I have a very simple question: Why is it in the following code not possible to remove the last entered value in SelectizeInput? E.g. I entered "a" "b" & "c" and I want to delete them all afterwards from the SelectizeInput. Why is it no possible to…
elrey
  • 167
  • 2
  • 8
0
votes
0 answers

Hide/Show table in R shiny based on input value

I am trying to show/hide a table based on the input selection. Based on my first dropdown if the user selects a value wave2 it should show the table 2 under the 1st tab else it should hide. I tried to use the react input select value to if else…
SNT
  • 1,283
  • 3
  • 32
  • 78
0
votes
1 answer

Is it Possible to Use Multiple DT formatStyle functions in R Shiny?

I'm wondering if it is possible to use multiple DT::formatStyle functions in R shiny. I would like to implement colors (green and red for positive and negative numbers, respectively) as well as highlighting the last row to display column sums.…
datanalyst
  • 351
  • 1
  • 3
  • 15
0
votes
0 answers

BROKEN: Reactive Element in renderDataTable - R Shiny

Background: I'm trying to insert a data.frame into a renderDataTable object in rShiny. My data.frame populates without any problems: However, my shiny dashboard is erroring out and not reading the table, despite the fact that it populates. I…
datanalyst
  • 351
  • 1
  • 3
  • 15
0
votes
1 answer

elements in ui not reactive

I am trying to make reactive elements in my shiny app using RStudio. I want the radio buttons to appear or disappear depending upon a checkbox. Then I am gathering the inputs from the elements displayed to generate two graphs. The problem is that…
Jay
  • 13
  • 3
0
votes
1 answer

Change reactive expression, keep observer

How can I overwrite/re-define a reactive expression, while keeping all observers to that expression intact? Below example is intended to make the observer listen to a button click, but only after the button has been clicked once. Before that, the…
nilsole
  • 1,663
  • 2
  • 12
  • 28
0
votes
1 answer

How to display only desired columns for data table?

I am trying to figure out how to display only desired columns for my data table when I am substracting observation on the plot, here is my code: library(shiny) library(dplyr) library(DT) library(plotly) # 1) Prepare layout hair = starwars %>% …
krakowi
  • 583
  • 5
  • 17