shiny-server

caching plots in R/Shiny

若如初见. 提交于 2019-11-27 06:51:59
问题 Just wondering if there are tricks/ways in which I could cache the plots being generated through our shiny app. Background: We are doing somewhat compute intensive computations which finally result in a plot. I am already caching(using memoise) the computations done, globally in shiny but it still takes about .75 seconds to render a plot. I was just wondering if we can decrease that time by removing the time it takes to render an image and if there are slick ways of already doing it. More

pandoc version 1.12.3 or higher is required and was not found (R shiny)

时光毁灭记忆、已成空白 提交于 2019-11-27 05:31:42
问题 I have a problem generating a pdf report from my app shiny which is hosted on a server. the app works fine but when I press the button to download the report, I get this error : pandoc version 1.12.3 or higher is required and was not found. The proble is that if I type pandoc -v I get: pandoc 1.12.3.3 Compiled with texmath 0.6.6, highlighting-kate 0.5.6.1. Syntax highlighting is supported for the following languages: actionscript, ada, apache, asn1, asp, awk, bash, bibtex, boo, c, changelog,

developing shiny app as a package and deploying it to shiny server

≡放荡痞女 提交于 2019-11-27 05:00:11
问题 I am developing a shiny app and since I wanted to use automated testing and documentation of the function, I started to develop the interface within a package (as recommended here). I develop this shiny app within RStudio and I have a server.R file which I can click on the Run App button within RStudio and everything works. I commit my package to a github repository and from this point I want to install it on my R shiny server using devtools and install_github function. Now I am wondering how

Interactive directory input in Shiny app (R)

拈花ヽ惹草 提交于 2019-11-27 03:36:21
I am building a shiny app that requires a user to select a folder on the local machine, which contains the files to be processed by the app. I am using a solution proposed here . This works fine on a local machine, but does not work if the app is deployed to a shinyapps server. The author of this solution confirmed that it was only designed to work with local Shiny apps, since it makes OS shell calls to display a directory dialog. I am wondering if there is a different solution for directory dialog, which will work on the deployed Shiny apps (I am deploying to shinyapps.io). Edited: Notice

Shiny rcharts multiple chart output

梦想与她 提交于 2019-11-27 03:33:37
问题 How can I overwrite the output display options with running multiple charts with shiny and rchart so the output result is a 2x2 matrix type grid layout. require(rCharts) require(shiny) require(data.table) runApp(list( ui = mainPanel( span="span6", showOutput("chart2", "Highcharts"), showOutput("chart3", "Highcharts"), showOutput("chart4", "Highcharts") ), server = function(input, output){ output$chart3 <- renderChart({ a <- hPlot(Pulse ~ Height, data = MASS::survey, type = "bubble", title =

Shiny R renderPlots on the fly

橙三吉。 提交于 2019-11-27 02:22:04
问题 I am trying to dynamically render multiple plots in a tab (better if this could be done across multiple tabs). After some search, I found this post is very helpful. But in my case, the number of plots is determined by the uploaded CSV file. So I think the question is how to call plotInput()$n_plot in a for loop? I appreciate any suggestions! At this moment, I am able to create multiples <div>s by calling renderUI . <div id="plot1" class="shiny-plot-output" style="width: 800px ; height: 800px"

Update graph/plot with fixed interval of time

半世苍凉 提交于 2019-11-27 01:08:11
问题 I have a plot in Shiny UI. If I change any input parameter and through reactivity plot will change. But let's consider following situation:- The plot in Shiny UI plotting let say intra-day price move of a stock. And for that you query some live data source. Now If I create a refresh button and then if time passes by I keep on clicking on refresh button. The plot will be updated as new data arrives as time goes into that live data source. Now my question is I don't want to keep clicking on

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

displaying TRUE when shiny files are split into different folders

六眼飞鱼酱① 提交于 2019-11-26 16:29:48
问题 I have a shiny app using the package shinydashboard. At first, I had all the files as 3 files - global.R, server.R, ui.R. As files got bigger and messy, I took out the codes for each menus, and placed them in a separate folder. (splitting shiny files - http://shiny.rstudio.com/articles/scoping.html) everything works, but there's something annoying happening - it displays 'TRUE' at the bottom of the ui of the menus I split into separate folder. If everything is just in one big file, it doesn't