shiny-server

Using many markers with leaflet in combination with shiny server

*爱你&永不变心* 提交于 2019-12-09 21:11:07
问题 I developed a Shiny-app where I make use of the leaflet package to plot a large nr of point (~25.000) on a geographical background. When I start the app from R-studio it all works very well. On the same server I have a shiny-server running. I deployd several apps on this server without any problems. I deployd the app on the shiny-server to make it available for end-users. The issue On shiny-server it looks like the app has a problems handling the number of markers (~25.000). The app 'hangs',

R shiny login hack

随声附和 提交于 2019-12-09 11:50:48
问题 Having tried the evaluation of the RStudio Shiny Pro Server I am not super enthused by the login/authentication mechanism as their is no simple mechanism to manage user accounts for clients to access a shiny app. As such I am attempting to create my own login mechanism within Shiny which for all intents and purposes is working ok, apart from the display of things within the shinydashboard framework. Things seem to cut off before all the content is displayed. My login code is a slight ammend

R Shiny - Conditional panel within conditional panel

天大地大妈咪最大 提交于 2019-12-08 19:12:20
问题 I am wondering if it is possible to have a conditional panel within another conditional panel. For example if I have a drop down list with two options: 1 and 2 selecting 1 will display one set of options and selecting 2 will display a different set of options. But is it possible to have a conditional panel nested within these conditional panel so that I could have another drop down list within the inputs for option 1. Here is some code for an example of what I am trying to do but this does

Creating a SQL query using selectinput in R shiny

你。 提交于 2019-12-08 18:14:25
I am trying to create a dynamic query using select input. Something like Select * from basket where fruits in("apple","banana","cherry") I have a table called fruit_list which populates my selectinput box. selectInput("fruit_list", label = h5("Select fruit"), multiple = T, choices = (dbGetQuery(conn, "SELECT fruit from fruit_list');"))) So far, when i renderprint my selection I get "apple" "banana" "cherry" I need a comma between the elements to get "apple","banana","cherry" When i choose a single element from the multiselect box "apple" Select * from basket where fruits in("apple") my

Getting the private ip address of an Rook/Shiny page user

℡╲_俬逩灬. 提交于 2019-12-08 15:26:37
问题 I have created some web app using Rook which listen to my network ip (192.168.xx.xx) at port 8000. Everyone inside my office can connect to them just typing http://192.168.xx.xx:8000/page_name in the browser. I need to monitor these pages usage and wonder how I can get the network ip address of those connected to them. I'm not experienced in web development and from the research done so far it seems that using client side code like JavaScript it's very difficult (almost impossible) to achieve

Creating a SQL query using selectinput in R shiny

半世苍凉 提交于 2019-12-08 08:53:57
问题 I am trying to create a dynamic query using select input. Something like Select * from basket where fruits in("apple","banana","cherry") I have a table called fruit_list which populates my selectinput box. selectInput("fruit_list", label = h5("Select fruit"), multiple = T, choices = (dbGetQuery(conn, "SELECT fruit from fruit_list');"))) So far, when i renderprint my selection I get "apple" "banana" "cherry" I need a comma between the elements to get "apple","banana","cherry" When i choose a

Update data frame of click data with user input

眉间皱痕 提交于 2019-12-08 04:23:36
问题 I am new to shiny and would like to follow-up on one of my previous questions: Add reactive values from click events to existing data frame and update plot. I have updated the code but don't seem to understand how I should proceed. Till this point I managed with some help to make the app update an existing data frame with click data so that it plots and updates the regression line in the plot. Now I would like the user to have an option (I was thinking of radiobuttons) so that he can choose a

How to access the R+Shiny code for the applications on shinyapps.io?

萝らか妹 提交于 2019-12-07 19:29:57
问题 I have found a very well-design shiny app on shinyapps.io website but I am not sure how to access its R code or say the github directory for its code. I find it very instructive if we could have access to its code. Anyways, in the worst case, can someone help me to know how can I have nice sidebarPanels and mainPanels like this website? I know some CSS is involved but I am new to CSS and not sure how to get some neat design like that in shiny. 回答1: I don't exactly know how the app looked (the

Shiny R Action Button Controls Reactive Elements

余生颓废 提交于 2019-12-07 17:43:47
问题 Not sure if I should use this term. Basically, I have a reactive function which displays user uploaded CSV file and I would like to use a action button to fire a plot generation process. At this moment, the plot is always generated on the fly. So I am wondering, in the renderPlot function, how to let a action button override a reactive element. Thanks! ui.R library(shiny) shinyUI(fluidPage( titlePanel("Test"), sidebarLayout( sidebarPanel( fileInput('file1', 'Choose CSV File', accept=c('text

Update data frame of click data with user input

末鹿安然 提交于 2019-12-07 15:23:27
I am new to shiny and would like to follow-up on one of my previous questions: Add reactive values from click events to existing data frame and update plot. I have updated the code but don't seem to understand how I should proceed. Till this point I managed with some help to make the app update an existing data frame with click data so that it plots and updates the regression line in the plot. Now I would like the user to have an option (I was thinking of radiobuttons) so that he can choose a class (-1/1) for those points he added with clicks. I don't know why I cant update the data frame with