shiny-server

grouped bar plot in shiny with select input

半世苍凉 提交于 2019-12-25 00:32:07
问题 I have multiple select inputs that control the output of a single bar graph currently. When you use the first selectinput, it will select the data source. There is a secondary selectinput which selects the variable from the first data source. The code below works when you have a non grouped bar plot. I am trying to create a double bar plot and I have another data source separate from the one I am using for the current plot. The two main data sources that have the exact same variables. However

502 bad gateway nginx shiny file upload

我的梦境 提交于 2019-12-24 16:53:32
问题 I have uploaded a big file (5Gb) using fileUpload. I have increased the file upload limit to 10Gb in the shiny server code. T he file upload succeeds but returns the error after the upload is completed: Error : html head title 502 bad gateway /title /head Below are my config info: options(shiny.maxRequestSize = 10000 * 1024 ^ 2) The nginx config /etc/nginx/nginx.conf has the basic settings in http block as below: http { map $http_upgrade $connection_upgrade { default upgrade; '' close; client

R Shiny: mirror R console outputs to Shiny

走远了吗. 提交于 2019-12-24 14:34:27
问题 I made a function that is performing some complex calculations via a for loop. In order to show progress, the function will print out the current progress via something like message(...) , and the final outcome of this function is a data frame. But when I implement this in Shiny, the for loop counter is printed only in the R console rather than the Shiny document as intended. Is there a way to showing the outputs in the R console in real time during executions? A very minimal example is here.

Error in Running R Shiny App: Operation not allowed without an active reactive context

独自空忆成欢 提交于 2019-12-24 12:56:27
问题 I am using Shiny and R to visualize my data interactively. I would like to draw an interactive scatter plot of Petal.Width versus Petal.Length in Iris dataset and cluster the points based on k clusters (user input) and p, the percentage of data rows dedicated to the training dataset (user input). I added a hover feature to the scatterplot so that by clicking on each point, the whole dataset for that point will be demonstrated. The output should look like this: # Loading Libraries library

Add option to scroll selected items once done using selectizeInput

旧巷老猫 提交于 2019-12-24 12:23:31
问题 I'm using selectizeInput to have multiple selections for an input. I have also added a "Select All or None" option that automatically selects all options or nonw (there are A LOT of options). However, my issue is that when it selects all, there are so many options that it shows all of them in the selectizeInput box and it makes my page super long and you have to scroll to the bottom to see anything else in my app. Wondering if there's an option that allows you to have a max number of items

Search from a textInput to a Handsontable in Shiny

删除回忆录丶 提交于 2019-12-24 11:07:08
问题 I've been working for some days with Handsontable in Shiny and I got stuck in what I guess will be a very dumb question but I have not this much idea how to solve. I have a Handsontable that has a custom function that allows searching and it works. It works but is not intuitive enough because you have to right-click on the table to pop the search option. Because of this, I decided that I would like to have a textInput that does the same function but in a prettier way. I know that it should be

Updating Shiny Server Config to change timeout error

风流意气都作罢 提交于 2019-12-24 11:01:18
问题 I have a shiny app with a downloadHandler built in and it works great for smaller datasets but when the file gets large (330 MB), it times out and I get an error. I found this SO question (shiny downloadHandler timeout) which seems to address the answer although I don't know how to update the config file to take into account http_keepalive_timeout . Below is my config file: # Instruct Shiny Server to run applications as the user "shiny" run_as shiny; # Define a server that listens on port

How do I get Shiny-server to working with Azure Active Directory

给你一囗甜甜゛ 提交于 2019-12-24 10:49:56
问题 I am using Azure Webapps for Containers to host an R Shiny-Server. I want to use Azure Active Directory to authenticate and authorize the user logging into the app. I am using the rocker/shiny image from dockerhub and the image builds and run easily. However, when I am turning on Active Directory the app does not work anymore. Any hints and clues on what might be wrong would be of great help. 回答1: I got the same problem of an "empty" page, because loading of static files by the browser

Shiny dynamic table error “cannot coerce type 'closure' to vector of type 'character'”

喜你入骨 提交于 2019-12-24 10:06:35
问题 This is a question derivated after store input as numeric value to generate three tables in Shiny and similar, but not equal, to r shiny error Error in as.vector(x, "character") : cannot coerce type 'closure' to vector of type 'character' I want to create a large table to create some tables after that table in a Shiny app. Here is my MWE (seems to be a problem with the titles, the h3's in the UI) : Full server.R: # # This is the server logic of a Shiny web application. You can run the #

How to manipulate/use reactive expression like a normal dataframe for further computation?

爱⌒轻易说出口 提交于 2019-12-24 08:29:49
问题 This is my first ever Shiny App. I have already created a reactive expression which imports a data i.e data1() and followed by an observe expression to determine the two columns selected. Another reactive expression makes data2() which shows the data that is been formed in the above observe event. I want to use the data created in function data2() for further computation, but i am unable to use it. I want to use the data of data2() as a dataframe in my observeEvent function. But i am unable