Shiny

Download Pdf report in Shiny

放肆的年华 提交于 2020-12-13 03:41:50
问题 Im making a shiny app, that will create 2 plots and one table. There are a lot of options in the select input part. Once selected it will subset the data.frame and return with another data.frame to be analised. It will plot accordingly and I want it to generate a report in pdf (or html) with the details of the input. Like "Generate Report" button and give me the plot for that specific input and with the input$company.pdf (or html) name. I have searched everywhere and I cant find out how to do

Download Pdf report in Shiny

时光毁灭记忆、已成空白 提交于 2020-12-13 03:41:33
问题 Im making a shiny app, that will create 2 plots and one table. There are a lot of options in the select input part. Once selected it will subset the data.frame and return with another data.frame to be analised. It will plot accordingly and I want it to generate a report in pdf (or html) with the details of the input. Like "Generate Report" button and give me the plot for that specific input and with the input$company.pdf (or html) name. I have searched everywhere and I cant find out how to do

How do I set shiny app size in RStudio windowed mode?

ⅰ亾dé卋堺 提交于 2020-12-13 03:40:04
问题 I was wondering, if there is a way to start a shinyapp in RStudio in window mode with prespecified window size. I found a workaround via creating a new file with following code: {library(shiny) vwr = dialogViewer('modellvergleiche-irt-with-brms', width = 1600, height = 1200) runGadget(shinyAppDir(appDir = '../modellvergleiche-irt-with-brms'), viewer = vwr) } # Run app in presized window But I find it pritty ugly (especially the appDir = '../modellvergleiche-irt-with-brms' part). Is there a

How do I set shiny app size in RStudio windowed mode?

╄→尐↘猪︶ㄣ 提交于 2020-12-13 03:34:42
问题 I was wondering, if there is a way to start a shinyapp in RStudio in window mode with prespecified window size. I found a workaround via creating a new file with following code: {library(shiny) vwr = dialogViewer('modellvergleiche-irt-with-brms', width = 1600, height = 1200) runGadget(shinyAppDir(appDir = '../modellvergleiche-irt-with-brms'), viewer = vwr) } # Run app in presized window But I find it pritty ugly (especially the appDir = '../modellvergleiche-irt-with-brms' part). Is there a

R Shiny promise/future blocks process

心已入冬 提交于 2020-12-12 10:22:11
问题 I cannot figure out the fault in my script's logic that causes Shiny process blocking despite trying to use async future + promises strategy. I have this (simplified) server script. It works in principle, but I don't experience parallelization. I simulate 2 simultaneous triggering and the second triggering event waits until the first one resolves. Can you please indicate what is wrong here? I have read several manuals, but I still find it hard to nail down the logic. Minimal Example, a one

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

R Shiny img() on UI side does not render the image

£可爱£侵袭症+ 提交于 2020-12-08 13:22:27
问题 I have a static image in the local folder I am trying to render in the Shiny UI and it does not work. Shows a broken image with a question mark in the middle. ui <- fluidPage(img(src = 'imagefile.png', height = '100px', width = '100px')) server <- function(input, output) {} shinyApp(ui = ui, server = server) Any idea what is going on? 回答1: Put the image in a folder called www in the same directory, so you have www/imagefile.png. Then, call library(shiny) ui <- fluidPage(img(src = 'imagefile

R Shiny img() on UI side does not render the image

人盡茶涼 提交于 2020-12-08 13:19:22
问题 I have a static image in the local folder I am trying to render in the Shiny UI and it does not work. Shows a broken image with a question mark in the middle. ui <- fluidPage(img(src = 'imagefile.png', height = '100px', width = '100px')) server <- function(input, output) {} shinyApp(ui = ui, server = server) Any idea what is going on? 回答1: Put the image in a folder called www in the same directory, so you have www/imagefile.png. Then, call library(shiny) ui <- fluidPage(img(src = 'imagefile

R Shiny img() on UI side does not render the image

允我心安 提交于 2020-12-08 13:19:02
问题 I have a static image in the local folder I am trying to render in the Shiny UI and it does not work. Shows a broken image with a question mark in the middle. ui <- fluidPage(img(src = 'imagefile.png', height = '100px', width = '100px')) server <- function(input, output) {} shinyApp(ui = ui, server = server) Any idea what is going on? 回答1: Put the image in a folder called www in the same directory, so you have www/imagefile.png. Then, call library(shiny) ui <- fluidPage(img(src = 'imagefile

How to make appear sidebar on hover instead of click in Shiny?

拈花ヽ惹草 提交于 2020-12-07 07:15:45
问题 I am working on a shiny application and have used shinydashboard package for the UI part. I want to open the sidebar on hover instead of click on the button. I have tried data-trigger option but it is not working. Can anyone please help me in doing this? A minimal example for the shiny dashboard application ## app.R ## library(shiny) library(shinydashboard) ui <- dashboardPage( dashboardHeader(), dashboardSidebar(), dashboardBody() ) server <- function(input, output) { } shinyApp(ui, server)