Questions tagged [shinymodules]
150 questions
1
vote
1 answer
Show tab that was hidden from another Shiny module
I'm attempting to display tab2, from within a server module, upon clicking a dynamically generated button.
Although the message is displayed, I'm unable to understand why the tab2 is not appearing again...
Can anyone provide guidance on how to…

Quizicall
- 133
- 6
1
vote
2 answers
disable does not work for downloadButton when using uiOutput/renderUI
I have a simple ui/server modules. When I try using uiOutput/renderUI, the disable/enable function does not work. But, if I call ui module directly in the ui, it works fine.
library(shiny)
library(shinyjs)
library(shinydashboard)
my_UI <-…

Hassan Masoomi
- 92
- 5
1
vote
1 answer
R Shiny modules using purrr::map to dynamically make buttons -- how to dynamically create observers to use these button inputs
I am new to functional programming with purrr. There is probably a sweet solution out there in purrr for this. I generate UI buttons with namespaced IDs same as the record IDs in a dataframe. I generate an observer for each button. I cannot figure…

Peter E
- 83
- 4
1
vote
1 answer
How to use Login Module with Flexdashboards?
I have a r-flexdashboard with shiny elements. This works fine.
Now I have to implement a login-page to start the dashboard.
With the package shinymanager I was able to integrate a login window. Thanks to the update of this post: Modifying shinyauthr…

Volker Holzendorf
- 237
- 2
- 10
1
vote
1 answer
Shiny app modules: How to pass variables defined in the Server as arguments of functions in the UI?
i am using R6 to pass variables across and along the main server and server modules, following Jiwan Heo's approach as described in his article.
Using a simplified example (without graph to minimise code length) of the mentioned article, this…

trevi
- 589
- 1
- 6
- 11
1
vote
1 answer
How do I observe module output inside renderUI R Shiny
I have taken the example from Communication between modules and changed the second input module into a rendered one. So basically, once you click "Show" button, it renders the module UI and server. The module outputs selection items from 2…

Nikoa
- 11
- 2
1
vote
1 answer
renderUI in a modal inside nested shiny modules
Say I have my module1 below which shows a modal when the button is clicked. It works fine.
library(shiny)
module1_ui <- function(id) {
shiny::tagList(
actionButton(
inputId = NS(namespace = id, id = "actbtn"),
label = "Click"
…

Mwavu
- 1,826
- 6
- 14
1
vote
1 answer
Shiny Modules: Use SliderInput in multiple Elements
I am new to Shiny Modules, and I want to use the input from the sliderInput in (at least) two different elements. Therefore I created a little reprex. I want to have a histogram with a vertical line to display the slider value and a table in the…

Mischa
- 137
- 8
1
vote
1 answer
Communication between modules and looping through values to create several modules
Goal
I have five expectations:
Solution using modules
Communication between modules
Dynamic creation of modules
local storage using shinyStore
Export result in dataframe
What has worked so far
This is a continuation of the following question.
I…

Derek Corcoran
- 3,930
- 2
- 25
- 54
1
vote
0 answers
Update dateRangeInput with button using shiny module in flexdashboard
I have the following flexdashboard written in R markdown.
---
title: "Untitled"
runtime: shiny
output:
flexdashboard::flex_dashboard:
orientation: rows
---
```{r global, include=FALSE}
library(shiny)
…

Carlos Davila
- 129
- 2
- 9
1
vote
1 answer
How to repeatedly update the same table using shiny modules
I have a shiny app that uses modules. In this app there are several drop downs with choices that need to be populated in a table. The first drop down relates to the second and gives the row filter to change the value of the second dropdown in the…

Hunter Clark
- 181
- 13
1
vote
0 answers
How to combine multiple R modules (with submodels and uiOuput) using shinydashboard?
I'm modularizing a Shiny app I developed using shinydashboard packages. Despite it traditionally works when I use it without involving modules, I can't make it work when I try to divide it into modules and submodules. Here I would like to combine…

Eugenio Alladio
- 103
- 7
1
vote
1 answer
How to change inputs across several Shiny modules when changing the inputs in a single module?
I am working with a rather larger Shiny app with several modules. Each tab in the app is its own module. Some of the tabs have some shared inputs, along with distinct inputs to their own tabs.
This is what I need: when a user changes an input in one…

Avery Robbins
- 132
- 1
- 9
1
vote
1 answer
How to include and display images in R package?
I am trying to package a Shiny module that displays a modal with a logo (in png format). For this purpose, I have created a "inst/www" directory to store the logo file. The directory tree looks something like this:
├─ DESCRIPTION
├─ inst
│ └──…

fabian_h
- 31
- 4
1
vote
1 answer
How to pass button's 'click' action between modules?
I have a button in one module. When I click the button a panel should appear. This panel is placed in another module. I tried to pass button's 'click' action between modules using some reactivity but my code doesn't work properly. Here is a workable…

mustafa00
- 751
- 1
- 7
- 28