Questions tagged [shinymodules]
150 questions
0
votes
1 answer
R Shiny Modules - module return multiple reactiveVals to main server
I have problem with communication between main server and server module. I would like to return from module current reactiveVals and then use them in main app.
I created basic app which shows my problem. Module contains 2 buttons and 2 reactiveVals,…

tomsu
- 371
- 2
- 16
0
votes
1 answer
Dynamic UI for successive filtering of data
I have been reading and watching videos on Shiny Modules. I am trying to implement it one of my apps and am running into some trouble. I have extensively look at several questions here and examples but I am still unable to fix the error.
What I am…

JaJ
- 25
- 3
0
votes
0 answers
Performance costs of reactive inputs to shiny modules?
I'm writing a Shiny module that could be used in multiple places, so the function that calls the server part has lots of arguments. I'm debating internally whether some arguments should be "fixed", you set them up when calling the module and that's…

mkranj
- 144
- 8
0
votes
0 answers
Include editAttributes in R shiny module
I still face problems to apply the editAttributes() function from the mapedit R-package into a shiny module. As soon As I modularize this function the data table corresponding to the rectangles is not reactive anymore. Below I provide a shortened…

r2d2
- 3
- 2
0
votes
0 answers
How to render a dynamic number of plots from inside a Shiny module?
EDIT: I found a solution, but I don't understand why it works. Instead of calling renderPlot(plot) in that tibble with mutate and map, I passed the plot and called that on the right hand side of assignment in the for loop. I tried it on the 'real'…

Quasar
- 101
- 1
0
votes
1 answer
R shiny: How to use removeUI in shiny module to hide action button
I want to hide an action button once it is clicked and when the input is not empty.
Similar question has been asked here, and the provided solutions works very well.
However, I don't know how to make it work in a shiny module.
Here is my example…

Wang
- 1,314
- 14
- 21
0
votes
1 answer
Passing reactive to module server function with `updateSelectizeInput`
The goal of this module is to take a reactive input e.g. a dataframe dataset, and updates the choices argument in selectize input with the rownames of this reactive input dataframe.
It works fine without modularization, but when I try to implement…

Victor Yuan
- 37
- 5
0
votes
1 answer
r shiny - communication of inputId between shiny modules in order to use shinyjs functions like disable/enable/toggle
I've been delving into Shiny modules, and so far, everything has been going well. However, I'm having trouble manipulating inputIds that come from another module. Specifically, I want to use functions like shinyjs::disable to disable a button in one…

iferdel
- 25
- 4
0
votes
0 answers
How to return the filtered rows in a reactable table in a Shiny app module
I am looking for some help please to develop a solution to return the filtered rows in a reactable table in a Shiny app module.
I am looking to identify which rows are the subset of mtcars after the columns have been filtered with free text in the…

CallumH
- 751
- 1
- 7
- 22
0
votes
1 answer
Cell colouring in Shiny Rendertable when using shiny modules
I have been using the guidance here to colour the cells of my table in based on the number in the cell. However the whole table is currently displaying in the colour selected and not just the one cell.
This is what is currently outputting
I believe…

Vicki Latham
- 11
- 1
0
votes
0 answers
Test standalone shiny app for a single shiny module
Is there an easy way to test if a standalone shiny app, built for a single module, is running (also to get more code coverage)?
To give some background, I've built a shiny app consisting of several modules. For each of the modules, I've built a…

moremo
- 315
- 2
- 11
0
votes
0 answers
renaming the output name when saving file using downloadButton removes ".csv" extension
In the code below, I am just using simple downloadButton() example. It works just fine. But, Why changing the output file name after the "Save File" window pops up, will save the file with no extension (removes the .csv)?
library(shiny)
downloadUI…

Hassan Masoomi
- 92
- 5
0
votes
1 answer
Multiple UI Output Based on File Upload Using Shiny Modules
Dataset Viewer
Hello, I am attempting to create a shiny application that allows to user to view their uploaded datasets individually.
When there is no file uploaded a message appears asking the user to upload their file...once a csv file is…

Anthony Hampton
- 31
- 5
0
votes
0 answers
Shiny modules & insertUI/removeUI: storing all module inputs in a data frame
Background: I have an app where the user enters their cancer history. For each cancer type they need to enter 1) the name of the cancer, 2) the age of diagnosis, and 3) a conditional input with a secondary cancer name. Initially, the user sees no…
0
votes
1 answer
Use source() with Shiny Modules
I have a Shiny app that I am trying to "modularize". I have an issue that my subtab tabPanel tab_Summary is not recognized when I separate it in another R file.
If I place the creation of the tab_Summary inside the ui.R it works, but if I want to…

ML_Enthousiast
- 1,147
- 1
- 15
- 39