Questions tagged [shinymodules]
150 questions
0
votes
1 answer
Reactive input to shiny module
Cross-posted from https://community.rstudio.com/t/reactive-input-to-module/143679, if that's not okay feel free to let me know! I'm new to posting here.
I'm using a module to handle file uploading. It allows the user to upload a CSV or an RDS, or to…

shosh-riv
- 3
- 2
0
votes
1 answer
How to add checkbox in datatable in a shiny module?
I have a shiny module that displays a table with a comment column where users can input text on the client side and the comments then get stored in the database.
Now, I want to add another column with checkboxes and store their corresponding…

Mohamad Sahil
- 165
- 2
- 12
0
votes
1 answer
Call for input inside moduleServer
I'm learning Shiny modules. And I'm stuck in a very silly thing: I don't know how to call an input inside moduleServer. In this reprex, the table does not show, I think its because the getInput argument is not properly used in the server. Here's a…

David Jorquera
- 2,046
- 12
- 35
0
votes
0 answers
Showcase mode with shiny modules
I have a shiny application that uses shiny modules.
Each module lives in its own file in modules/ and is sourced in global.R.
I also have a DESCRIPTION file which puts the shiny app into the showcase mode when deployed.
The problem is, that only…

David
- 9,216
- 4
- 45
- 78
0
votes
1 answer
RShiny adding a module within a loop, based on user input
I want to make an RShiny app where the user can select a folder, and then add a navbarMenu containing as many tabPanels as there are files in the selected folder. The tabPanels are made with a module. Here is an app with a button that adds just one…

Quillox
- 11
- 2
0
votes
1 answer
Removing from tabsetpanel a panel defined inside a module (need to try twice to recreate a removed tab)
Im trying to build a simple app with a tabsetPanel having a set of
panels definded inside a module, each one of these panels has an actionbutton
aimed to remove the panel.
It seems to work, but if I try to recreate a tab with the same name
of the…

tencpa
- 1
- 1
0
votes
1 answer
Cant transform my functional shiy app to one with shiny modules
What currently works
Hello I am trying to build a shiny app for species sampling. For each species that is selected I need to select in which kind of sampling, and if it is selected in a pin-point sampling it needs to be counted, here is a working…

Derek Corcoran
- 3,930
- 2
- 25
- 54
0
votes
1 answer
shiny module namespace issue with dynamic creation of tabesetPanel
I am currently having troubles making my module UI and server communicating whith an intermediate renderUI creating the layout. Here is a repex with and without the dynamic creation of the tabsetPanel. I guess the problem comes from namespace but I…

Bambs
- 545
- 4
- 14
0
votes
1 answer
Best practices for returning a server-side generated value from a Shiny module?
Consider the following example application:
library(shiny)
library(shinyWidgets)
module_UI <- function(id){
tagList(
div(
uiOutput(
outputId = NS(id, "selection")
),
…

Kyle Weise
- 869
- 1
- 8
- 29
0
votes
1 answer
Using the lapply() function in a Shiny module to build a tabBox with multiple tabPanel whose amount depends on the imported data
I want to build a module in shiny that renders a tabBox with the number of tabPanel as a function of the data. The simulated data (see script below) has the tank or pond variable (column) ("viveiro" in Portuguese) whose quantity can be a variable.…

Carlos Zarzar
- 50
- 5
0
votes
1 answer
Read Reactive Elements from Shiny Module
I'm trying to use some reactive elements from predefined function and call that data from a module to generate plots, but data is not getting updated upon selection. I've also tried to call the function inside reactive() and call that from the…

Saikat Mitra
- 31
- 3
0
votes
1 answer
Shiny modules inside other modules
I am trying to put some graph modules inside another module. Not working at the moment though. I imagine that this isn't the way to do it. Any ideas on how it should be done?
library(shiny)
library(tidyverse)
library(palmerpenguins)
# modules…

william3031
- 1,653
- 1
- 18
- 39
0
votes
1 answer
Shiny Module Communication
I am trying to create a dynamic UI based on user inputs. First, I am using an lapply inside Mod2.R to return the values of Mod1 onto Mod2 and save it in a reactiveVal object, which lives inside mod2.R and is saved as binner_step_data. The main app…

Diego
- 392
- 3
- 16
0
votes
0 answers
Dynamic filter data in observEvent shiny Module
I have written a shiny code where I have option to filter data. So I need to click on filter button and select filters of my choice. But if I click the filter button more than once then the filters got reset with the default values. How could I fix…

Williams86
- 320
- 1
- 11
0
votes
1 answer
Passing Plots from inside a renderUI in a Shiny Module to main Server
I am trying to understand how to pass information from a module to the main server of a Shiny App. This is an oversimplification of my actual code, so I understand that it could be done in a different way, but I need to do this primarily with…

Diego
- 392
- 3
- 16