Questions tagged [shinymodules]
150 questions
0
votes
1 answer
bs4Dash using moduleServer()
I have an issue with using modules with bs4Dash. I have created a ShinyApp with modules using golem which I created from my previous ShinyApp.
I have no issue in using input$dark_mode == TRUE or if (input$dark_mode) if it is a single app, for…
0
votes
2 answers
What is the difference between NS() and ns() (Rshiny)
NS() vs ns()
When to use the upper Case variant and when to use the lower case?

Leo
- 51
- 4
0
votes
1 answer
Name-spacing is breaking when creating UI elements within nested moduleServers
I am developing a Shiny application with nested shiny modules, when I define variable UI elements within a nested module server the parent module name space is not inherited correctly. For example, if you had the following
Parent module -> ns =…

MrShops
- 3
- 1
0
votes
1 answer
What is my mistake that the result of the unit test of a Shiny module doesn't make sense?
I have provided a minimal example Shiny app with two modules. The dataselect & table module updates the second selectInput depending on the first selectInput and the plot module plots a timeline for the selected rows of data. I want to test the…

Maryam Momeni
- 7
- 3
0
votes
0 answers
Problem in creating a test file for unit testing of Shiny modules using usethis::use_test()
My R shiny app has two modules. The "dataselect" module and the "plot" module. I want to write unit tests for the two modules using testthat package. I am following the instruction in the mastering Shiny book. It has been mentioned in this book that…

Maryam Momeni
- 7
- 3
0
votes
0 answers
Error when creating a test for a Shiny module
I want to write a unit test for a shiny module using testthat package. I am following the instruction of mastering Shiny book. It has written in this book that first we should create a test file using usethis::use_test() in the R console.
But when I…

Maryam Momeni
- 7
- 3
0
votes
1 answer
How to create communication between Shiny modules?
I created an app in shiny containing whose communication between modules does not work properly. A concise description of my app: My application has two selectInputs. It updates the second selectInput depending on the first selectInput and then it…

Maryam Momeni
- 7
- 3
0
votes
1 answer
Why my application works well but when I try to modularize it, it doesn't work properly?
My application has two selectInputs. It updates the secound selectInput depending on the first selectInput and then it plots a timeline for df data. The app works completely well, but when I try to modularize it, it doesn't work properly (just the…

Maryam Momeni
- 7
- 3
0
votes
0 answers
How to Instantiate a ShinyReForms in a Shiny Module
Its quite quick and easy to instantiate a ShinyReForms for a Shiny app by following the example at https://piotrbajger.github.io/shinyreforms/articles/tutorial.html. I cannot though see how to get it working in a Shiny module.
The app below is a…

CallumH
- 751
- 1
- 7
- 22
0
votes
0 answers
updateTabItems in shinydashboard with Shiny modules and golem
I have experience with Shiny programming, but am new to Shiny modules and am having trouble getting updateTabItems in shinydashboard to work properly. I'm pretty sure I understand the concept of modules generally, but must be missing something…

code_cowboy
- 596
- 5
- 18
0
votes
0 answers
Problems using R shiny modules
I have just gotten into modules and it seems like I have not figured it out yet. The following code does not run properly. The app closes immediately after it opens.
It seems like the id does not match. However, I am not quite sure what goes…

Benjamin Bech
- 23
- 5
0
votes
1 answer
Download map in shiny modules is not working
I have a module with only the download button and 2 other modules, the ui and server functions to plot a map.
Now I want to implement the download button to print the map. I have tried many ways but I can't download the map in a pdf.
In my original…

akshay bholee
- 61
- 6
0
votes
1 answer
Shiny Module app displays tabpanel outside the box layout. Need to resize the tabpanel
I have a shiny app where the tabpanel ('Drug') is showing outside the box layout. I am using shiny modules to modularize my code. The Drug section has a module of it's own and there is a main module that is a container for submodules. The UI section…

sutsabs
- 431
- 2
- 11
0
votes
2 answers
Shiny app not working after being split into modules
I have the following shiny app that works correctly in app.R/ui.R-server.R. The main idea is that an user submit a dataset and then the app can highlight some errors in the dataset (i.e., incorrect data formats, ranges, etc.), so the user can modify…

inuse
- 23
- 4
0
votes
1 answer
R Shiny: how to use updateBox() within shinymodule, to update a box outside the module?
I'm currently rewriting a big shinyapp and I try to shift as much as possible into modules.
At some point, the user can choose weather to use stuff that is inside box a) or inside box b).
I know how to toggle or remove / restore a box in shiny, but…

Jans
- 13
- 2