Questions tagged [shinymodules]

150 questions
1
vote
1 answer

R Shiny - Saving results of dynamically created modules

I encountered the following problem that I have tried to summarize in this minimal reproducible example. The app should be able to dynamically create modules and render the UI of the module - obj_UI in my example - in a tab of the tabsetpanel objTP.…
Thomas
  • 72
  • 6
1
vote
2 answers

Nested Modules and ObserveEvents - R Shiny

I previously asked a similar question but didn't have any luck. I've put together a simple full app in hope that this may help people to solve my question/issue. In this app, I want to dynamically create UI within a module and each set of…
Tiger_Stripes
  • 485
  • 5
  • 17
1
vote
1 answer

R shinyjs disable function not working in module that takes input from another module

Below code is a minimum example of what I'm building in a larger app and I can't figure out why the textInput in output_module.R is not disabled. Would be very grateful if anyone can help! app.R library(shiny) library(shinyjs) # Define UI ui <-…
Rishi
  • 45
  • 7
1
vote
1 answer

How to use a highcharter event function in shiny module

My question is related to this post. By clicking on a bar in a bar plot I want to display the selected category. When rewriting the code into modules I do not get the expected result (i.e. display the category in text field), instead nothing happens…
volfi
  • 435
  • 3
  • 11
1
vote
1 answer

Can I maintain input defaults across different instances of a Shiny App Module?

I wanted to see if it was possible to take the inputs from one instance of a Shiny App module and apply them as the default inputs for a separate instance of the same module on a different tab. I'm struggling with the right way to ask this question,…
Kodiakflds
  • 603
  • 1
  • 4
  • 15
1
vote
1 answer

problem in adding several shiny modules using insertUI

I build a shiny app that need to add pieces of UI dynamically based on some parameter I'll know only in real time. I created a simplistic reconstruction of my needs, and encountered a problem I describe below so in my example I have a module called…
amit
  • 3,332
  • 6
  • 24
  • 32
1
vote
1 answer

Shiny Action Button Not working from module

I have defined my action button from a module as shown bellow. Now it cannot trigger an observe event when pressed.I had this thinking that modules are isolated and self sufficient but seems not .Putting this in my server it works well but i do not…
user322203
  • 101
  • 7
1
vote
1 answer

alignment of ggplots in a modularized shiny app

I have a modularized shiny app that displays in real time 4 variables. The monitor module takes as an input one big data frame, and displays the signal assigned. The 4 modules are stacked together in the ui: tabBox(id = "monitoring_tabBox", …
Joan Puig
  • 13
  • 3
1
vote
1 answer

observeEvent with updateMaterialSwitch in shiny module not updating input

I want to update my materialSwitch inside shiny module with observeEvent, event is triggered but updateMaterialSwitch doesn`t change input value. My code snippet: # app server app_server <- function(input, output, session) { r <- reactiveValues() …
Patrik
  • 77
  • 8
1
vote
1 answer

Inputs not updating in shiny module server when using renderUI or InsertUI in the main APP

My application generates both automatic Ui and can also add ui manually. I have used both renderUI and InsertUI in the main application to call shiny modules. The normal use case of shiny module even with renderUI function in module server updates…
Jitu Deka
  • 65
  • 8
1
vote
1 answer

Shiny output elements not displaying in bs4Dash with nested modules

EDIT: The author of the bs4Dash package, David Granjon, recently provided an answer to the question asked in the Github issue referenced below and closed it. My question is very likely related to this issue in bs4Dash github repo, but no answer was…
SavedByJESUS
  • 3,262
  • 4
  • 32
  • 47
1
vote
1 answer

Access shiny module id within the modules server function

I am wanting to access the id passed into a shiny modules UI component and the callModule inside the corresponding server component of the module. My intention is to use the id provided by the user to add a title to a pop up…
jamesguy0121
  • 1,124
  • 11
  • 28
1
vote
1 answer

How to use shiny:renderUI and shiny:UiOutput to produce conditional outputs with shiny modules

This is a slight extension of an earlier question. Note: This solution now works after a typo was identified in the code and corrected. I hope this is a useful pattern that others can use too. I would like different output types to be displayed via…
JonMinton
  • 1,239
  • 2
  • 8
  • 26
1
vote
1 answer

Using rhandsontable in a shiny module

The application On startup, a 3 x 3 table is generated with values from 1 to 9 in a random order. What the app user can see is a blank 3 x 3 rhandsontable that he/she will use to try to guess where the generated values are. When the user clicks on…
SavedByJESUS
  • 3,262
  • 4
  • 32
  • 47
1
vote
1 answer

Having difficulty getting an actionButton in a nested Shiny module to work

In the following modularized shiny app the insertBtn_outer button works okay, but I am struggling to get the insertBtn_inner button to work. Many thanks for any insights that could help to resolve my issue. library(shiny) innerUI <- function(id){ …