shinydashboard

Returning a dataframe in a reactive function in R Shiny Dashboard

那年仲夏 提交于 2021-01-18 07:13:35
问题 Working with a Shiny Dashboard, ui.r, server.r and several r scripts that contain functions. Base problem is: I have two data sets that I bring into the server.r and I pass those to a function the prepares/cleanses the data sets and then binds them together and should return a complete dataframe. The dataFrame should be reactive. Here is what I have so far: In the server.r I load the data prior to the function(input, output, session). Then I have: ################server.r code ###############

Apply css formating only on specific tabItem of a shiny dashboard

≯℡__Kan透↙ 提交于 2021-01-07 01:28:04
问题 I have the shiny app below in which I want to apply css formating only on specific tabItem of the shiny dashboard but it is applied on both. How can I specify it to be applied only on 1st? library(shiny) library(shinydashboard) ui <- dashboardPage( dashboardHeader(), dashboardSidebar(menuItem("Welcome", tabName = "tab1", icon = icon("house")), menuItem("Information", tabName = "tab2", icon = icon("table"))), dashboardBody( tabItems( tabItem("tab1", tags$head(tags$style(HTML(' body{ font-size:

Apply css formating only on specific tabItem of a shiny dashboard

旧城冷巷雨未停 提交于 2021-01-07 01:26:12
问题 I have the shiny app below in which I want to apply css formating only on specific tabItem of the shiny dashboard but it is applied on both. How can I specify it to be applied only on 1st? library(shiny) library(shinydashboard) ui <- dashboardPage( dashboardHeader(), dashboardSidebar(menuItem("Welcome", tabName = "tab1", icon = icon("house")), menuItem("Information", tabName = "tab2", icon = icon("table"))), dashboardBody( tabItems( tabItem("tab1", tags$head(tags$style(HTML(' body{ font-size:

how pass multiple parameters to shiny app via URL to updateSelectInput?

有些话、适合烂在心里 提交于 2021-01-07 01:21:48
问题 I have this code for "global" query for passing multiple arguments (countries) to show multiple plot via updateSelectInput my project http://webcovid19.online Problem is that parameter passing is working only for 1 argument like this http://webcovid19.online/?global=Slovakia, with more arguments like below http://webcovid19.online/?global=Slovakia,Czechia looks that passing arguments not working, got this error. "Aesthetics must be either length 1 or the same as the data (1): x, y, colour,

Change size, color of badge and text of dragulaInput

Deadly 提交于 2020-12-15 11:44:56
问题 I use package esquisse to create the input, I wonder how I change size of the badge, color text and badge color? if (interactive()) { library("shiny") library("esquisse") ui <- fluidPage( tags$h2("Demo dragulaInput"), tags$br(), dragulaInput( inputId = "dad", sourceLabel = "Old", targetsLabels = c("New"), choices = levels(iris[,"Species"]), width = "250px", height = "100px", status = "danger" ), verbatimTextOutput(outputId = "result") ) server <- function(input, output, session) { output

Change size, color of badge and text of dragulaInput

◇◆丶佛笑我妖孽 提交于 2020-12-15 11:44:28
问题 I use package esquisse to create the input, I wonder how I change size of the badge, color text and badge color? if (interactive()) { library("shiny") library("esquisse") ui <- fluidPage( tags$h2("Demo dragulaInput"), tags$br(), dragulaInput( inputId = "dad", sourceLabel = "Old", targetsLabels = c("New"), choices = levels(iris[,"Species"]), width = "250px", height = "100px", status = "danger" ), verbatimTextOutput(outputId = "result") ) server <- function(input, output, session) { output

Including a HTML file rendered from RMarkdown in R Shiny apps using shinydashboard is causing tabItems to break

谁说我不能喝 提交于 2020-12-12 06:16:09
问题 Problem When including a HTML document rendered from RMarkdown in a ShinyApp using shinydashboard, the HTML document is only rendered correctly when the setting "self_contained:" in the YAML chunk of the RMarkdown file is set to true. However, doing this causes you to be unable to select tabItems from the sidebarMenu in shinydashboard. Conversely, when the setting "self_contained:" is set to false, elements of the HTML document such as plots and a floating table of contents are missing (non