shiny-server

docker nginx connection refused while connecting to upstream

ε祈祈猫儿з 提交于 2020-07-18 11:35:30
问题 I use shiny server to build a web-app on port 3838, when i use nginx in my server it works well. But when I stop nginx on my server and try to use docker nginx, I find the site comes to a '502-Bad Gate Way' error and nginx log shows: 2016/04/28 18:51:15 [error] 8#8: *1 connect() failed (111: Connection refused) while connecting to upstream, ... I install docker-nginx by this command: sudo docker pull nginx My docker command line is something like (for clear i add some indent): sudo docker run

How to extract element name, not value, from a list in R Shiny selectInput()?

好久不见. 提交于 2020-07-10 10:28:44
问题 I would like to extract the element name, and not the specific value, from a list used for the choices argument in selectInput() from R Shiny. The selectInput function looks like this: # ... selectInput("xvar", "What is the predictor variable?", choices = list("MPG" = "mpg", "Cylinders" = "cyl", "Engine Displacement" = "disp", "Horse Power" = "hp", "Gears" = "gear"), # ... In my server.R code I would like to use, for example, "Cylinders" and not "cyl" as an axis label. For example (using

How to extract element name, not value, from a list in R Shiny selectInput()?

只愿长相守 提交于 2020-07-10 10:28:10
问题 I would like to extract the element name, and not the specific value, from a list used for the choices argument in selectInput() from R Shiny. The selectInput function looks like this: # ... selectInput("xvar", "What is the predictor variable?", choices = list("MPG" = "mpg", "Cylinders" = "cyl", "Engine Displacement" = "disp", "Horse Power" = "hp", "Gears" = "gear"), # ... In my server.R code I would like to use, for example, "Cylinders" and not "cyl" as an axis label. For example (using

How to get User's Information in Rshiny

谁说我不能喝 提交于 2020-07-08 02:09:52
问题 I want to get User's IP, User's window ID and User's Server Access time I can get User's IP with below code but Other things can't get.... getting User's IP code is ip <- session$request$REMOTE_ADDR at server.R How to get User's window ID and User's Server Access time ???? 回答1: Long-story-short, there is a limit to what "you" (the app and therefore you, the dev) can know about the connection. I've put in similar requests for some more with RStudio professional support, and what I have below

How to get User's Information in Rshiny

我与影子孤独终老i 提交于 2020-07-08 02:09:35
问题 I want to get User's IP, User's window ID and User's Server Access time I can get User's IP with below code but Other things can't get.... getting User's IP code is ip <- session$request$REMOTE_ADDR at server.R How to get User's window ID and User's Server Access time ???? 回答1: Long-story-short, there is a limit to what "you" (the app and therefore you, the dev) can know about the connection. I've put in similar requests for some more with RStudio professional support, and what I have below

Need to build dependency for 3 InsertUI fields coming from Excel sheet in RShiny

半世苍凉 提交于 2020-06-23 14:16:34
问题 I am pretty new to R and was trying to build a small utility just for my learning. I have 3 fields in my excel workbook named: Country State Cities All these fields should come as a drop down in UI. What I want to achieve is: 'when I make a selection for Country, a new drop down for State should get created with a list of States that falls under the Country selected. And based on the state selected the underlying cities should get populated in the drop down' I found a few examples online, but

Need to build dependency for 3 InsertUI fields coming from Excel sheet in RShiny

非 Y 不嫁゛ 提交于 2020-06-23 14:13:28
问题 I am pretty new to R and was trying to build a small utility just for my learning. I have 3 fields in my excel workbook named: Country State Cities All these fields should come as a drop down in UI. What I want to achieve is: 'when I make a selection for Country, a new drop down for State should get created with a list of States that falls under the Country selected. And based on the state selected the underlying cities should get populated in the drop down' I found a few examples online, but

convert shiny ldap authentication to flask ldap authentication

生来就可爱ヽ(ⅴ<●) 提交于 2020-05-16 05:57:09
问题 We have shiny application which use ldap authentication from Microsoft Active Directory, which is as follows auth_active_dir ldap://52.324.23.53/dc=x,dc=y,dc=z x.y.z{ #user_bind_template "{username}"; } This code works properly. I have flask app. I want same LDAP authentication for flask app using following code import ldap url = 'ldap://52.324.23.53' l = ldap.initialize(url) l.set_option(ldap.OPT_REFERRALS, 0) l.simple_bind_s('MyUserName', 'MyAnswer') However following is error code, when I

convert shiny ldap authentication to flask ldap authentication

此生再无相见时 提交于 2020-05-16 05:57:02
问题 We have shiny application which use ldap authentication from Microsoft Active Directory, which is as follows auth_active_dir ldap://52.324.23.53/dc=x,dc=y,dc=z x.y.z{ #user_bind_template "{username}"; } This code works properly. I have flask app. I want same LDAP authentication for flask app using following code import ldap url = 'ldap://52.324.23.53' l = ldap.initialize(url) l.set_option(ldap.OPT_REFERRALS, 0) l.simple_bind_s('MyUserName', 'MyAnswer') However following is error code, when I

Render or download animated GIF on Shiny

浪子不回头ぞ 提交于 2020-05-13 06:11:05
问题 I intend to make a Shiny app where the user uploads a file with location data and the app returns an animated gif that displays these location data (after having done some calculations as well). It all works well when the app is run locally on my computer. Also, when running online most elements work well. The thing I cannot figure out is how to return the animated gif to the user when the app is deployed at shinyapps.io. Regardless of whether I try to return it via renderImage or in a