shiny-server

Can I make input fields dynamically change in Shiny based on other inputs?

为君一笑 提交于 2019-12-24 08:12:52
问题 I have a Shiny app in R with several inputs (drop-downs and sliders). Initially they all have default values for when the app opens, using the "selected" parameter. But, i'm wondering if there is way to dynamically change the default value based on a certain input field. Example, if I have one input field that is a drop-down of countries and then I have one slider input of price for a pint of beer . As a default "Ireland" is selected from the countries list and the slider is defaulted to €5

Connecting GitHub to Shiny Server

三世轮回 提交于 2019-12-24 07:59:11
问题 I am trying to set up a shiny server with the manual of Dean Attali. So far I made the shiny server work. This should be proofed by the fact that the "Welcome to Shiny Server" page shows up when I navigate to the server ip. The problem is that I cannot connect my shiny server to GitHub like in step 8.2 of the manual. I tried it a several times now, but I am getting this error message: error: src refspec master does not match any. error: failed to push some refs to 'origin' This is my code:

Filtering from selectInput in R shiny

五迷三道 提交于 2019-12-24 06:11:15
问题 I'm trying to have the user upload a .csv file, then take a column (factor) of that .csv file and create user input of to determine which of the unique names in that field will be selected for the data frame. So if I have the following example data.frame: COURSE VALUE 1 A 7 2 C 2 3 C 2 4 B 9 ... I'd want to filter using Select_Input and the user can select select say A and C and the data frame would be filtered for just rows with A and C. Below is the code to generate the UI for the select

Filtering from selectInput in R shiny

一曲冷凌霜 提交于 2019-12-24 06:11:07
问题 I'm trying to have the user upload a .csv file, then take a column (factor) of that .csv file and create user input of to determine which of the unique names in that field will be selected for the data frame. So if I have the following example data.frame: COURSE VALUE 1 A 7 2 C 2 3 C 2 4 B 9 ... I'd want to filter using Select_Input and the user can select select say A and C and the data frame would be filtered for just rows with A and C. Below is the code to generate the UI for the select

What is SockJSAdapter and why it is running endlessly

纵饮孤独 提交于 2019-12-24 04:23:27
问题 I have a Shiny-app hosted in Ubuntu, attached is the current snapshot of processes running As you see a significant chunk of memory is being consumed by something called SockJSAdapter which is related to Shiny-server. I have noticed that this process starts when I run my App in Browser and it keeps running even after I close that App in Browser. Can someone shed more light what this process is, and why it keeps running even after I close the App? Do I need to do something in my Shiny-app (ui

Automatic GUI Generating in R Shiny

天大地大妈咪最大 提交于 2019-12-23 19:21:48
问题 The problem I have is that I am not able to automatically generate a GUI in Shiny. The idea is to see how many files there are and generate a set of Image + button for each file. I believe the solution to this problem is the solution to ANY GUI generation in R. I am able to do this statically, writing the code for each button and image, but it doesn't work to put it in a for loop, or to render the image in the server.R and pass it as HTML to the ui.R. I will explain below. The code I want to

Connection to Google Spreadsheets not opening in Shiny Server

孤街醉人 提交于 2019-12-23 06:21:13
问题 I have been trying to use Shiny to read and analyze new format Google spreadsheets using the functions here. This works fine locally but not when I deploy to shinyapps.io. One issue was the known issue of false positives on the test for absolute paths but that is solved by forcing deployment in the console. However once uploaded I'm getting the javascript dump alert with this error label, label<-Error in file(con, "r") : cannot open the connection I've looked around and I can see that people

Adding/removing icon in downloadButton() and fileInput()

夙愿已清 提交于 2019-12-22 10:35:21
问题 In Shiny, we have downloadButton() and fileInput() buttons for downloading and uploading data respectively. However it happens that, with downloadButton() there is download icon, and however with fileInput() no icon is attached. In my Shiny app, I have both buttons. However since one of them has icon attached, it brings some kind of visual inconsistency in my App. So, I either want to remove such icon from downloadButton() , or add some upload button with fileInput() to bring consistency.

Shiny Server - how to use session$onSessionEnded()

孤街醉人 提交于 2019-12-21 04:35:05
问题 I'm trying to track user activity as they go through my shiny app. I have functions placed at specific locations which write lines to a temporary file. What I want is to have a function which is called when the user session ends. According to the documentation: > ?session > onSessionEnded(callback) Registers a function to be called after the client has disconnected. Returns a function that can be called with no arguments to cancel the registration. I tried to use this: session$onSessionEnded

Creating drill down report in R Shiny

﹥>﹥吖頭↗ 提交于 2019-12-20 20:01:10
问题 I am trying to display a data table with 'n' number of columns as shown below Begin Date | EndDate | Month | Year | Count of Students 2/1/2014 | 1/31/2015 | Jan | 2014 | 10 3/1/2014 | 2/28/2015 | Feb | 2014 | 20 4/1/2014 | 3/31/2015 | Mar | 2014 | 30 5/1/2014 | 4/30/2015 | Apr | 2014 | 40 I want to make this data table interactive by enabling the drill down/drill through functionality, where a user can click on each of the values in the "Count of Students" field to see the underlying raw data