shiny-server

shiny app busy indicator

痴心易碎 提交于 2019-12-17 23:43:01
问题 Note : I have read almost all the discussions on this object in shiny googlegroups and here in SO. I need an indicator that shows the shiny server is busy. I have tried shiny incubator, however, the problem is that I can't set a max for progress bar. I don't want something like this : http://shiny.rstudio.com/gallery/progress-example.html What I need is something that: 1- shows a busy indicator message and bar (i.e just a simple animated bar, do not need to show a filling bar) as long as the

Shiny R application that allows users to modify data

爱⌒轻易说出口 提交于 2019-12-17 23:12:30
问题 This is not yet a practical question but rather a theoretical one. I was thinking of using Shiny to display some raw data in an interactive way. This is fine. However - is it possible to have users change the data that is displayed? Say, if I have a bunch of sliders for users to restrict the underlying data to satisfy certain conditions and have these observations displayed - is it possible to allow the users to make modifications to that data and have these modifications sent back to the

r shiny date range input to sql query

☆樱花仙子☆ 提交于 2019-12-17 19:54:52
问题 I have a sql query below that works just fine. Select * from dbo.Employee where StartDate between '08/01/2014' and '08/31/2014' order by StartDate I am modifying this query such that it takes date input from shiny UI (daterange) . sqlQuery(myconn, paste("Select * from dbo.Employee where StartTime between", "'as.character(input$daterange[1])'", "and", "'as.character(input$daterange[2])'", "order by StartTime")) I get an error [1,] "22007 241 [Microsoft][SQL Server Native Client 10.0][SQL

Hosting and setting up own shiny apps without shiny server

爱⌒轻易说出口 提交于 2019-12-17 17:36:09
问题 I'm trying to make shiny apps available to my coworkers without them having to run or even have R installed. So I read this webpage and found this sentence: If you are familiar with web hosting or have access to an IT department, you can host your Shiny apps yourself. under the ' Share as a web page '-section. How can I do this? The problem is that my company is bound to certain restrictions regarding web hosting and security and so on, and will not (for now) pay for a shiny-server-pro. But

How to embed an image in a cell a table using DT, R and Shiny

为君一笑 提交于 2019-12-17 10:53:34
问题 How can I embed an image in a cell that is generated using the DT package so that it is displayed in an app using shiny? My example is based of this question R shiny: How do I put local images in shiny tables The example code below doesn't display the image, but rather just the url. # ui.R require(shiny) library(DT) shinyUI( DT::dataTableOutput('mytable') ) # Server.R library(shiny) library(DT) dat <- data.frame( country = c('USA', 'China'), flag = c('<img src="test.png" height="52"></img>',

Accept HTTP Request in R shiny application

独自空忆成欢 提交于 2019-12-17 08:53:28
问题 I have a shiny app that I have made that needs to get its data from another server, i.e. the other server when the shiny app is opened sends a request to the shiny app to open the app and feed it the data that it needs. To simulate this I can send the following to the R shiny app when I open the app in firefox: http://localhost:3838/benchmark-module/?transformerData=data/TransformerDataSampleForShiny.json This is a simple get request that sends the sting called : "Transformer Data" with

R Shiny download data encoding issue

扶醉桌前 提交于 2019-12-13 15:24:32
问题 Maybe it is a silly question but I am really confused. We have Shiny server running on Linux system and set language = UTF-8 to ensure it shows special characters correctly (e.g. 谭盾, いきも,Acatlán de Pérez Figueroa). However, when I tried to download the data (I have a download button utilizing write.csv function), those special characters got mess up. When I specify the encoding, it works well for both Windows and Mac systems, meaning both Windows and Mac users are able to download correct

Reactive SelectInput (Dataset Unknown until API call from Previous Filter)

泪湿孤枕 提交于 2019-12-13 03:54:13
问题 I am creating a shiny app that will do the following using Spotify's API: 1) You manually type in the Artist Name 2) In the selectInput, the albums need to automatically populate for your selection. 3) After selecting the album, a table in the main panel will show the songs, artist, and album. I have this working so far but I cannot figure out how to do the 2nd part which is to automatically populate the albums once the artist is selected. I asked a previous question here: Shiny: Automatic

make a query and data frame reactive and refresh it on every 5 minutes

浪尽此生 提交于 2019-12-13 02:44:42
问题 // library(plyr) library(shiny) library(ggplot2) library(scales) library(shinydashboard) library(gridExtra) library(DT) library(ggthemes) library(plotly) library(data.table) library(plotrix) library(shinyjs) library(shinycssloaders) # connection with dash db shinyServer(function(input, output, session) { # withProgress(message = 'Data Downloading', # detail = 'This may take a while...', value = 0, { # for (i in 1:15) { # incProgress(1/15) # Sys.sleep(10) # }}) dsn_driver = "" dsn_database = "

Rstudio and shiny server proxy setting

余生长醉 提交于 2019-12-12 09:37:49
问题 i have installed RStudio Server v0.98.507 and Shiny Server v1.1.0.10000 on my ubuntu14 my rstudio proxy setting on nginx default location /rstudio/ { rewrite ^/rstudio/(.*)$ /$1 break; proxy_pass http://localhost:8787; proxy_redirect http://localhost:8787/ $scheme://$host/rstudio/; } that' my shiny server setting at /etc/shiny-server/shiny-server.conf # Define the user we should use when spawning R Shiny processes run_as shiny; # Define a top-level server which will listen on a port server {