shinydashboard

Shiny Dashboard - display a dedicated “loading..” page until initial loading of the data is done

ⅰ亾dé卋堺 提交于 2019-11-27 04:37:37
问题 I have initial loading of data from the DB in the server.R which takes a few seconds. Until this is done, the page displayed is distorted (wrong data in selection box, and weird placing of the boxes, see below). I want to display a different page (or at least different content in my first-displayed tab) until the data is completely loaded. I thought about doing some kind of conditionalPanel using a condition based on a dedicated global variable (initial_loading_done), but wherever I tried

shinydashboard some Font Awesome Icons Not Working

こ雲淡風輕ζ 提交于 2019-11-27 02:49:15
问题 When using shinydashboard I find that some icons seem to work while some don't. In the below example, the battery-full icon doesn't work while the clock-o icon works fine. I'm unable to figure out why this should happen. library(shiny) library(shinydashboard) header <- dashboardHeader(title="Some Icons Not Working?") # No sidebar -------------------------------------------------------------- sm <- sidebarMenu( sm <- sidebarMenu( menuItem( text="asdf", tabName="asdfasdf", icon=icon("battery

Shiny server session time out doesn't work

馋奶兔 提交于 2019-11-26 22:46:42
问题 I have a shiny app deployed on a Linux server. I want the app to timeout if there is no activity for a minute. Based on what I read, I added the line app_idle_timeout to the shiny-server.conf file but I notice that it doesn't work. Can someone please advice how I can ensure that the session times out after a minute? Note: I do NOT have shiny server PRO. Below is what my shiny-server.conf looks like. Instruct Shiny Server to run applications as the user "shiny" run_as shiny; # Define a server

How do you pass parameters to a shiny app via URL

﹥>﹥吖頭↗ 提交于 2019-11-26 22:16:23
问题 In web browsers you pass parameters to a website like www.mysite.com/?parameter=1 I have a shiny app and I would like to use the parameter passed in to the site in calculations as an input. So is it possible to do something like www.mysite.com/?parameter=1 and then use input!parameter? Can you provide any sample code or links? Thank you 回答1: You'd have to update the input yourself when the app initializes based on the URL. You would use the session$clientData$url_search variable to get the

Navigate to particular sidebar menu item in ShinyDashboard?

浪子不回头ぞ 提交于 2019-11-26 20:47:15
问题 (cross post from shiny google groups, https://groups.google.com/forum/#!topic/shiny-discuss/CvoABQQoZeE) How can one navigate to a particular sidebar menu item in ShinyDashboard? sidebarMenu( menuItem("Menu Item 1") menuItem("Menu Item 2") ) i.e. how can I put a button on the "Menu Item 1" page that will link to "Menu Item 2"? To navigate between tabs I am using the updateTabsetPanel function: observeEvent(input$go,{ updateTabsetPanel(session, "tabset1", selected = "Step 2") }) I believe I