Questions tagged [renderui]

33 questions
1
vote
1 answer

How can I use the same inputId in multiple uiOutputs in R Shiny?

I am writing an app that will be used to enter data from paper forms into an SQL database. The data are from wildlife capture records, and will go into a single table, so the different forms share a lot of the same fields (e.g. weight, age, species,…
tamarack
  • 377
  • 1
  • 11
1
vote
2 answers

In R shiny, how to eliminate flashing of all conditional panels in sidebar when first invoking the App without using renderUI?

This is follows up on my June 30 post where I eliminated conditionalPanel flashing in the sidebarPanel when invoking the App. The solution was to move those sidebar conditional panels into renderUI, eliminating flashing. However, I later found out…
1
vote
1 answer

shinydashboard box collapse

library(shinydashboard) library(shiny) library(dplyr) trtall <- rbind(rep("A",100),rep("B",100), rep("C",100)) trt <- sample(trtall,80) agecat.temp <- c(rep("18-40",100), rep("> 40", 100)) agecat <- sample(agecat.temp, 80) sex <-…
1
vote
2 answers

How to change slider bar color using setSliderColor on multiple sliders when using renderUI in R Shiny

I have multiple sliders that are reactive upon other data that I want to change the color of. I'm trying to avoid long bouts of CSS code, so I'd like to use shinyWidget's setSliderColor() function is possible. This answer worked when I just had one…
J.Sabree
  • 2,280
  • 19
  • 48
0
votes
0 answers

How do I render the actual content of a menuSubItem once selected in the Sidebar? (Shinydashboard)

Here is my code library(shiny) library(shinydashboard) ui <- dashboardPage( dashboardHeader(title = "LiqTIT - beta"), dashboardSidebar( sidebarMenu( menuItem("menuitem 1", tabName = "menuitem1", icon = icon("database")), …
0
votes
1 answer

R Shiny RenderUI output formatting issue: removing an html text and reforming the appearances

I have a following R shiny code: library(tidyverse) library(shiny) library(shinythemes) library(data.table) library(ggplot2) library(GGally) main_page <- tabPanel( title = "Analysis", titlePanel("Analysis"), sidebarLayout( sidebarPanel( …
Dai
  • 51
  • 5
0
votes
1 answer

`x` must contain exactly 1 expression, not 2 error in r shiny

I want to create a r shiny app in which for each y variable one tab is produced (so tabs must be dynamically generated) and in each tab the plots are in two columns and n rows (as in the figure). However, I received the following error: `x` must…
Abbas
  • 807
  • 7
  • 14
0
votes
1 answer

How to make selectizeInput function reactive to multiple user inputs?

This post is a follow-on to yesterday's post, How to make selectInput choices reactive?. The data frame shown at the top of the image below and generated via the MWE at the bottom of this post has two types of period measurements: Period_1 and…
0
votes
1 answer

dateRangeInput() is not aligned in shinydashboard when we use it with uiOutput()

I need to set the input date dynamicallly in my app and therefore I need to use uiOutpot/renderUI for dataRangeInput. However when I put it directly in "ui" as in this simple example: library(shiny) library(bs4Dash) shinyApp( ui = dashboardPage( …
Farhad
  • 151
  • 7
0
votes
1 answer

In R Shiny, when using renderUI/uiOutput to dynamically generate sets of controls, how can I harvest those values or populate input by causing events?

Question In R Shiny, when using renderUI uiOutput to dynamically generate sets of controls, such as: checkboxes radiobuttons text boxes how can I harvest those values or populate input by causing events? As-is, those generated controls appear to…
Doch
  • 3
  • 2
0
votes
0 answers

Generating reactive feedbackWarnings for dynamically generated input with Shiny

Shiny beginner here! I'm trying to create an app, where the user can input a dynamic number of 8-digit codes. First they input the number of codes they like, and using renderUI, that many slots are generated. I would like to use ShinyFeedback to…
ixi9
  • 1
  • 1
0
votes
0 answers

Why is my renderUI call in R Shiny yielding a "Error in match.arg(position) : 'arg' must be NULL or a character vector" error?

I am building a shinyApp that has 2 tabs with slightly different sidebars. For the first sidebar, I want a selectInput that has the names of the dataset and for the default to select all of them (not by using a workaround like adding an "All"…
J.Sabree
  • 2,280
  • 19
  • 48
0
votes
1 answer

Display dynamic UI elements in Shiny

I'm trying to generate dynamic plots in Shiny. The number of plots is not known in advance so I use renderUI. The problem is that the elements are displayed one above the other. Is there a way to specify the number of elements to be displayed by row…
0
votes
1 answer

How to subset data based on inputs from renderUI

I am trying to subset my data based on inputs from renderUI. This data would then be passed to further work in an observe chunk. Below is an example, where there is an issue with the server code. I am having difficulties with the code recognising…
user2957945
  • 2,353
  • 2
  • 21
  • 40
0
votes
2 answers

custom valueboxes in R Shiny are compressed with large white spaces in between them

I'm trying to make custom valueboxes in R Shiny. I've discovered how to change the color of the background, but something is making my value boxes stubby and leaving large gaps in between them. I'd like to display 3 on a line ideally, but even with…
J.Sabree
  • 2,280
  • 19
  • 48