Relative Content

Tag Archive for rshinyshiny-reactivity

shiny: Take Dependency Only On a Subset of Columns

Assume that I have a reactive which returns a data.frame. I want some of my controls to take a dependency only on a subset of its columns, that is it should only fire, if values in any of the “relevant” columns (here rel_1 and rel_2) change, while changes in the “irrelevant” columns (here irr_1and irr_2) should not trigger a refresh.

shiny: Take Dependency Only On a Subset of Columns

Assume that I have a reactive which returns a data.frame. I want some of my controls to take a dependency only on a subset of its columns, that is it should only fire, if values in any of the “relevant” columns (here rel_1 and rel_2) change, while changes in the “irrelevant” columns (here irr_1and irr_2) should not trigger a refresh.

How do I close an f7Popup in R Shiny with a button click?

I have a popup window that opens as the app first runs. I don’t like the small x in the corner of the popup window and want to instead have a larger “Continue” button on the bottom of the popup window. However, I cannot get the window to close upon clicking the button. See the code below:

How to give precedence to one observer over other observers in R Shiny code?

In the R Shiny code below there are two user input tables: parentTbl and childTbl. Both are generated using rhandsontable. The user can input two “Y” values into the parentTbl input table which in the full code applies these Y variables over time window “W”. Values in parentTbl flow downstream into a group of two linked and detailed user input tables called “childTbl”. The user can optionally enter values into any one of the two childTbl user input tables. In childTbl the user can alter the variable Y at time period “X” by inserting new rows via right mouse click and entering values into the added rows of the rhandsontable. Regardless of which table the user inputs values into, whether parentTbl or childTbl or both or none, values flow from parentTbl to childTbl to a calculation model (not shown). Note that the first row of parentTbl is directly linked to and corresponds to childTbl “Var_A”, the second row of parentTbl is directly linked to and corresponds to childTbl “Var_B”. Basically, childTbl allows the user the explode the values input into parentTbl.

Shiny App server code not receiving input variables

I’m trying to create a UI with two dropdown fields referencing data frames in the global environment–mon and apps. I’m using selectizeInput to do this. I click an actionButton (ID=”do”) to send the input variables to the server.

Shiny App server code receiving input variables

I’m trying to create a UI with two dropdown fields referencing data frames in the global environment–mon and apps. I’m using selectizeInput to do this. I click an actionButton (ID=”do”) to send the input variables to the server.