shiny-server

Is there a way to deploy R shiny apps as web page using windows server?

霸气de小男生 提交于 2019-12-12 09:27:13
问题 Let me know if there is a way to deploy shiny dashboards as a webpage using windows server. I know it is possible using Linux but it need it for windows. 回答1: If you put below code as last lines: app <- shinyApp(ui,server) runApp(app,host="0.0.0.0",port=5050) Then to run you Shiny App in any other machine just give the IP of the machine where the code is deployed and the port number which is 5050 in this case. So, for example if you code is deployed on a machine with IP: 123.12.123.12 then

Exclude row names from R Shiny renderTable

一笑奈何 提交于 2019-12-12 08:22:37
问题 I am using the renderTable function from the R Shiny package and it is returning a table with row names. Ideally I want a table to be displayed with only two columns, one for 'Month' and one for 'Value'. The output I currently get includes the row names. I have tried a few things to exclude row names but was unsuccessful. Any thoughts? output$valueTable <- renderTable({ if(input$table_view == TRUE){ data.frame(Month = Month(), Value = valueData()[,"Value"]) } }) 回答1: this instruction is

have fields of an input depend other inputs

心不动则不痛 提交于 2019-12-12 06:48:54
问题 I have 2 inputs, say A and B. I would like the "value" field of B to depend on the value inputted by the user for A. I.e., my suggestion for B depends on what I learnt in A. The following code does not work. How should I fix it please? shinyApp( ui = fluidPage( textInput("A", "Enter a string"), textInput("B", "Enter another string", value = "Second"), textOutput("curval") ), server = function(input, output) { if (input$A == "foo"){input$B$value <- "bar"} } ) This issue is also raised here.

Deploy Shiny app with Flexdashboard

可紊 提交于 2019-12-12 04:26:15
问题 I know how to deploy a shiny app using http://www.shinyproxy.io/. Basically I just need server.R and ui.R. Then using docker it's a pretty easy job. However, when using flexdashboard, I only have the .rmd file. How can I implement this deploy now? 回答1: This is actually supported out of the box by ShinyProxy. You just need to add yourfile.Rmd file in the docker image (i.e. add the relevant commands in your Dockerfile), and then use the docker-cmd: ["R", "-e rmarkdown::run('/path/to/yourFile

Save inputs from multiple users in www app folder so that it is always updated when a new session starts in shiny?

六眼飞鱼酱① 提交于 2019-12-11 15:48:54
问题 Multiple users will update a data.frame using multiple inputs in a shiny app. I'd like to be able to save every new submission (or delete actions) in the www directory of my shiny app so that the data.frame is always updated every time a user starts a new session. What would be the best way to do this? App code provided below library(shiny) library(tidyverse) library(shinyWidgets) # Define the fields we want to save from the form fields <- c("q1", "q2", "q3", "q4", "q5", "q6") # Save a

Shiny application not loading with graphics

爱⌒轻易说出口 提交于 2019-12-11 09:54:00
问题 I have shiny app, which works perfectly fine on my local machine. I deployed the app on shiny-server running on centos-release-6-9.el6.12.3.x86_64 . The content of the application is loaded without any graphics as shown below: And I get the following message in JS consol. Loading failed for the <script> with source “http://mamged:3838/v01/shared/bootstrap/shim/respond.min.js”. v01:18:1 ReferenceError: Shiny is not defined[Learn More] v01:21:1 Loading failed for the <script> with source “http:

Shiny R Zip multiple PDFS for download

冷暖自知 提交于 2019-12-11 08:13:46
问题 I am sorry if this too simple... I need to zip a number of generated pdfs for uses to download. I tried to use Zip function, but failed with error: Warning: running command '"zip" -r9X "pdfs.zip" "plot_1.pdf" "plot_2.pdf" "plot_3.pdf" "plot_4.pdf" "plot_5.pdf" ' had status 127 Error opening file: 2 Error reading: 6 Below is my code and any suggestions are welcomed (based on shiny app : disable downloadbutton) : UI.R library(shiny) shinyUI(fluidPage( singleton(tags$head(HTML( ' <script type=

read a file and save it into an object. [No display of loaded data ] in Shiny R

久未见 提交于 2019-12-11 07:00:41
问题 I know there are a few questions asked about this here is SO. But I couldn't figure out the solution to my problem from them. I want to Upload a file into R through shiny and assign it to an object say the object name "Object_name". I used fileInput in ui.R and did this fileInput('file1', h4('Choose Your Data File'), accept=c('text/csv', 'text/comma-separated-values,text/plain', '.OUT')) Now I accesses the "file1" and tried to recover my uploaded file through file1$datapath. I couldn't

store input as numeric value to generate three tables in Shiny

江枫思渺然 提交于 2019-12-11 06:25:28
问题 I want to create a large table to create some tables after that table in a Shiny app. This is a part of my server.R : function(input, output) { output$year <- renderText(input$year) ################################ # CONFLICTING PART OF THE CODE year <- reactive({ as.character(input$year) }) matrix = tbl_df(dbReadTable(rca_matrices_db, reactive(paste0("table_",year)))) ################################ my_table = matrix %>% ... BLA BLA BLA output$more_than_10 <- DT::renderDataTable(DT:

ShinyApps on AWS with Rstudio AMI

我的未来我决定 提交于 2019-12-11 06:25:10
问题 I created an AWS instance with this R Studio AMI. The instructions point that to make the Shiny App available to public you should put it in a ShinyApps folder (public dir). The issue I'm having though, is that my apps are accesable only through that particular directory, but I can't access them through subdirectories. For instance: http://<instance IP address>/shiny/username - works http://<instance IP address>/shiny/**subdirectory**/username - doesnt work So I can't really show more than