Questions tagged [shinymodules]
150 questions
0
votes
0 answers
readLines function not working in R connection
I'm trying to readLines from a connection. Below is my code,
server <- function(input,output, session) {
netlist <- reactive({
netlistdata <- readLines('run.scs')
print(netlistdata)
})
}
I'm trying to display the lines…

SSK
- 59
- 6
0
votes
1 answer
ShinyModules with "global" reactive values
I have a largish shiny app, where multiple elements change reactiveVals. Now I want to port the app to use shiny modules to be able to test it more appropriately. But I am not able to access the reactive values that are defined inside the server…

David
- 9,216
- 4
- 45
- 78
0
votes
1 answer
Using value of numeric input from Shiny module as input for user defined function and using output of that function as input in another module
I have a Shiny app with two modules and a user defined function:
The first module creates two numeric inputs with value set to 1 and 2.
The user defined function should take the values of the first module and add 1.
The second module should take…

Rishi
- 45
- 7
0
votes
1 answer
How to access user input from inside a module?
I am trying to access some user input that is defined within a module. In the code below, I have three pickerInput selections that cascade and depend on the previous one. The final pickerInput (Level3) will then filter the mpg dataset and display…

ESlice
- 69
- 4
0
votes
0 answers
How to display reactive UI for afvanced settings in modalDialog with Shinyusing moduals
I'm designing an app that will have multiple tabs that all have basic ui features on the side, but hid various advanced UI options in a pop-up modal button. Some of these options are responsive to the dataset, for example choosing which rows to…

Lionel Duarte
- 121
- 6
0
votes
1 answer
Return the values of a list of inputs from a module
I have a module in which I create a list of inputs based on a reactive value: if this value is 3, then 3 textInputs are created, etc. Until now, when I needed to return inputs/values from a module, I listed all of the inputs/values in return() at…

bretauv
- 7,756
- 2
- 20
- 57
0
votes
1 answer
Order of repeated Shiny Modules using lapply and insertUI
I created a (for demonstration purposes reproducible) shiny app where the ui creates some Data (DataPack) (a list with two elements) by clicking the "Load"-button. Every element of this list is plotted via the module using lapply in the server…

Cevior
- 97
- 8
0
votes
1 answer
Pass image objects through shiny but outside renderPlot
I have a shiny app that uses fileInput and magick to read a user chosen image, and display it as a ggplot.
library(shiny)
library(magick)
library(ggplot2)
ui <- fluidPage(
titlePanel(""),
sidebarLayout(
sidebarPanel(
…

Conor Neilson
- 1,026
- 1
- 11
- 27
0
votes
1 answer
modularize Shiny app: CSV and Chart modules
I want to create a modularized Shiny app where one module, dataUpload, is used to import a CSV and another module, chart, is used to
Create dynamic x and y dropdowns based on the column names within the CSV THIS WORKS
Create a plot based on the…

MayaGans
- 1,815
- 9
- 30
0
votes
0 answers
R Shiny - Triggering initial insertUI event programmatically in a Shiny module
The app below contains a selectInput (input$month) and a button, Show Modal, that launches a modal window when clicked. The modal contains a button, Add UI, that inserts some text, Element x, where x is the value of a counter that increases by 1…

user51462
- 1,658
- 2
- 13
- 41
0
votes
1 answer
How to arrange shiny modules files so that they run on Shiny Server?
I am trying to put an app on the server. It is in the correct place as I've put other apps before. But, this is the first time I've used modules.
I have UI in ui.R, server in server.R and the rest (all non-reactive code + reactive functions as…

Damian Fiłonowicz
- 46
- 7
0
votes
3 answers
Create multiple tabs within one shiny module
I'm using a tabsetPanel and and I now want to create a module that adds more than one tab to this panel. Here is my example code:
library(shiny)
library(tidyverse)
resultlistUI <- function(id) {
ns <- NS(id)
tabPanel(
title = "Result1",
…

eastclintw00d
- 2,250
- 1
- 9
- 18
0
votes
1 answer
Can I call a function (not a module) from within shiny modile- can I pass the module reactive values as arguments of function
I am pretty new to Shiny modules.
I am trying to call a function (not a module) from one of my modules.
I would like to pass in the contents of my current reactive values (in my module) as arguments into the function.
The function make a sql query…

EhsonGhandehari
- 1
- 3
0
votes
1 answer
Shiny module namespace issue: action buttons in data table
I'm adding a "Remove" button in a datatable to remove row. It works in a shiny app but not in a shiny module. I am pretty sure it's a namespace problem, somewhere in the shinyInput function or getRemoveButton function but I do not now how to fix it.…

tellyshia
- 11
- 4
0
votes
1 answer
Shiny Module renderTable can't update with input variable change
I have a checkbox and a table in my code. What I want is when user check certain box, new column with corresponding name with be generated.
Ideal Case Example:
However, this is what I have with my code:
Here is my code:
lineGraphUI <-…

Xinyi Li
- 123
- 1
- 2
- 8