Questions tagged [shinymodules]
150 questions
2
votes
1 answer
R Shiny: Change tabs from within a module
I have a shiny app with multiple tabs, and I would like to have action buttons within the tabs that allow the user to switch tabs. I found the following pages: https://www.titanwolf.org/Network/q/e6b187b8-6cad-4ece-ad16-7ec73ed2f758/y
How to switch…

tamarack
- 377
- 1
- 11
2
votes
1 answer
How to use nested modules with a leaflet map
I am trying to use shiny modules to build an App with a leaflet map. However, when I run the code below the map does not render properly -- it is greyed out.
What I would like to happen is that the user selects the city from the side panel and the…

user2957945
- 2,353
- 2
- 21
- 40
2
votes
1 answer
How to pass values from ui to server in a shiny module
I would like to pass data (static) from ui to the server in a shiny module. For a concrete example of the issue I am dealing with consider the app below. I want to be able to use the button to rotate through the radio input. However, because I do…

student
- 1,001
- 2
- 12
- 24
2
votes
1 answer
How to force inputs to take on the same values across modules
I'm working on a shiny dashboard that makes heavy use of shiny modules and my client has asked me to make it so that the same two inputs from my dashboard's various tabs take on the same values regardless of tab. I'm having a huge problem doing…

Donor Science
- 21
- 1
2
votes
1 answer
updatePickerInput after updateTabItem call in modularized R Shiny App
Goal:
I would like to select a row in the DT Table, switch tabs, and have the pickerInput value update to the value in the table's row.
Issue:
I am able to switch tabs just fine (thanks to another post's advice on using the parent session); however,…

Owen Bezick
- 73
- 7
2
votes
1 answer
How to select a subset of elements of the input R6 class within a shiny module to perform operations on them
Can I access a list of all input widgets within a module (let us name it myModule) and check if their state is isTruthy().
I found a way that works when I know (or can deduce) the exact names of the widgets (see 1).
All_Inputs <-…

Jan
- 4,974
- 3
- 26
- 43
2
votes
1 answer
Using variable value from one Shiny module in another module
I have three modules:
The first module creates a numericInput with value equal to 1.
The second module creates a textInput that is created with renderUI in the server function. The value is equal to the value of the first module + 1.
The third…

Rishi
- 45
- 7
2
votes
1 answer
User edit one table and the change is reflected in another table
I have this problem and the closest I can find is in reference to the submission here but it doesn't quite address what I'm trying to solve Reactive shiny modules sharing data
Referring to the corrected example in the link above, what if I want to…

bct
- 45
- 3
2
votes
1 answer
Why does this reactive value needs to be called first before it can be used?
While trying to come up with an overly complicated solution for this question, I stumbled across the following problem. I have 2 different modules, inputtable displays an rhandsontable and returns this table, and resulttable takes this table as the…

starja
- 9,887
- 1
- 13
- 28
2
votes
1 answer
Using Shiny's updateSelectInput within nested modules
Background
The application is of the following structure:
.
├── R
│ ├── mod_observationSelector.R
│ ├── mod_previewTable.R
│ └── mod_summaryTable.R
└── app.R
With the files fulling the respective functions:
mod_observationSelector.R -…

Konrad
- 17,740
- 16
- 106
- 167
2
votes
2 answers
Communication between Shiny Modules
I created an app (condensed example for illustration) in shiny containing a module whose communication does not work properly.
The ui shall create some Data (DataPack) (a list with so far two elements) by clicking the "Load"-button. The data shall…

Cevior
- 97
- 8
2
votes
1 answer
Shiny modules: how to access selected_rows with DT::datatables?
When using shiny modules and DT::datatable I would like to access the selected_rows server-side.
If my DT:datatable ID is my_DT_table then I would expect that the object input$my_DT_table_selected_rows contains the index of the selected row.
This…

Paul van Oppen
- 1,443
- 1
- 9
- 18
2
votes
0 answers
How can I call a module inside an observeEvent function (shiny)
I'm trying to set up a simple Card game in Shiny and therefore want to use
callModule(...) inside of observeEvent(input$..,{}), so I can call the same module with different events occurring.
Unfortunately this does not seem to work.
I know, that if…

FrederikFertig
- 21
- 1
2
votes
1 answer
Using shiny modules in R flexdashboard
I tried to use flexdashboard to make interactive vizualisation of word embeddings results, but I don’t get the logic behind the use of shiny modules.
In my Rmd dashboard, after loading the needed libraries, I first load the 3 models I want to deal…

Tau
- 173
- 1
- 8
1
vote
1 answer
How to pass shiny inputSelect values to server module
I have shiny code similar to the contrived example below. My intention is that in the server part, I pass on inputSelect values dynamically as arguments to the table_Server function like below (does not work):
# Line 94 of code
server =…

Tumaini Kilimba
- 329
- 2
- 12