Questions tagged [shinymodules]
150 questions
1
vote
1 answer
Shiny app with multiple input modules that creates the same output
I have an Shiny app where the users upload data to be processed. The user can choose a data source (like a file or a connection to a cloud service like google sheets). The number of types of data sources will increase in future. My plan was to make…

Christiaan
- 115
- 9
1
vote
1 answer
Make shiny module reactive
The example app below has two shiny modules. The first module displays a table with randomly generated values as well as an action button, which, when clicked, generates new values. The second module displays the data set generated in the first…

SavedByJESUS
- 3,262
- 4
- 32
- 47
1
vote
3 answers
download CSV using filtered dataframe RShiny
I've made an shiny app where I'm filtering a dataset using some values and then I would like to be able to download that filtered dataset. However, I'm struggling to understand how I can pass the filtered dataset to the csv downloader. It is a very…

unknown
- 853
- 1
- 10
- 23
1
vote
1 answer
Looped shiny module with leaflet map always shows the same marker?
I have written a loop over a shiny module which displays a marker on a leaflet map. However on all of my maps the same marker is shown (I want to show each pair of coordinates in the data.frame on a different map). I do not know why but the data…

needRhelp
- 2,948
- 2
- 24
- 48
1
vote
1 answer
Modularizing R Shiny code: ObserveEvent function in module
I am trying to improve the usability of my app.R code in R Shiny which is getting very long.
Essentially, I'd like to create a module (infras.R) to contain a large number of observeEvent functions that are linked to checkboxInputs.
I understand I…

Richard
- 95
- 2
- 11
0
votes
1 answer
How to pass and receive variables to a module function, then act on it?
I would like to pass a variable (or tibble/data.frame) to a module function, then receive a variable (or tibble/data.frame) from the module. Then act on the returned variable. So that each time I call the moduleServer with a unique namespace I can…

Aaron C
- 301
- 1
- 8
0
votes
1 answer
Shiny module for leaflet is not responding
I am translating a shiny app I have developed some years ago to use shiny modules. It is a very long and complex shiny app, but the module I need to build selects from a spatVect shapefile some countries, and does 2 things:
It updates a leaflet, in…

Derek Corcoran
- 3,930
- 2
- 25
- 54
0
votes
1 answer
Observe event within module nested in another module isn't recognizing input change
I have a large wizard app that I'd like to break up by putting each of the hidden tabs within their own modules.
I've made the reprex below based off of Hadleys wizard example.
The layout is
ui
L outer_ui
L inner_ui
server
L outer_server
L…

DewBudd
- 23
- 3
0
votes
0 answers
Shiny module error: Error in paste(namespace, collapse = ns.sep) : cannot coerce type 'closure' to vector of type 'character'
I am new to modules and have read the mastering shiny sections as well as researched this error related to shiny modules pretty well but not found anything that explains or solves why the error is occurring in my particular case.
I am trying to pass…

jzadra
- 4,012
- 2
- 26
- 46
0
votes
1 answer
How to pass value from one instance of shiny module to another instance of the same module?
I have created a contrived example of what I want to achieve. Basically, I have a modular shiny app with two tabs, Region and District. In the region tab, I want to display a table with the dataset dependent on the region selected in the dropdown…

Tumaini Kilimba
- 329
- 2
- 12
0
votes
2 answers
Shiny module updateTextInput or more generally all update*Inputs don't work despite the session
In the same Shiny App, I have two modules, which have a similar architecture with an observeEvent. Both observeEvents update the input fields. In one of the modules this action works just fine. In the other one it does not work for some…

Saren Tasciyan
- 454
- 4
- 15
0
votes
1 answer
initiate observeEvent() inside a module using an external button (or other trigger)
I have reviewed every post I can find about observeEvent(), updateSelectInput(), and module communication, and have yet to find an answer. What am I missing?
I want to be able to reset multiple user input widgets using a single button. Each user…

oliveoil827
- 3
- 1
0
votes
1 answer
How to Check selected tabPanel in Shiny R
I have R code for a shiny dashboard with several tabs. I want to be able to customise what function is run depending on the current tab. To do this I need to be able to know "What is the currently selected tabPanel?".
With the code below, there is…

Tumaini Kilimba
- 329
- 2
- 12
0
votes
1 answer
R-Shiny, Use action button into a leaflet popup inside a Shiny module
I am trying to use an actionbutton in a leaflet popup into a shiny module
When trying to use an action button into a leaflet popup in a Shiny module, button do not work.
See the exemple below :
library(shiny)
library(leaflet)
library(DT)
map_ui <-…

Thibault Senegas
- 15
- 3
0
votes
0 answers
disable/enable actionButton doesn't work in R Shiny Modules
I'm having trouble disabling and enabling actionButton in Shiny Modules.
I created a simple app to visualize my problem.
The application contains 3 actionButtons.
the first button does nothing, it's just a button that we'll want
to toggle…

tomsu
- 371
- 2
- 16