Shiny

Restart shiny app from within app (reloading data)

帅比萌擦擦* 提交于 2021-02-19 01:23:48
问题 I want to restart a shiny app from within the app, so that e.g. code in global.R will be executed again (to reload a csv file with data). Here is a minimal example showing what I want to do: This shiny app loads some coordinates data and plots markers on a map. When a new marker is added to the map, the new coordinates should be appended to the old data and saved as a csv file. Then the app should restart, load data.csv again, so all markers are shown on the map. I tried adapting code from

Restart shiny app from within app (reloading data)

亡梦爱人 提交于 2021-02-19 01:21:52
问题 I want to restart a shiny app from within the app, so that e.g. code in global.R will be executed again (to reload a csv file with data). Here is a minimal example showing what I want to do: This shiny app loads some coordinates data and plots markers on a map. When a new marker is added to the map, the new coordinates should be appended to the old data and saved as a csv file. Then the app should restart, load data.csv again, so all markers are shown on the map. I tried adapting code from

Dynamic number of actionButtons tied to unique observeEvent

廉价感情. 提交于 2021-02-19 01:17:29
问题 I'd like to generate a dynamic number of actionButtons, and then have each generated button print its number to the console. This is my best attempt so far, but I still can't get the observeEvent for each of the first 10 buttons to recognize the button clicks. How do I tie the buttons to an observeEvent? library(shiny) ui <- basicPage( fluidRow( actionButton(inputId = "add_button", label = "Add Button") ), uiOutput("more_buttons") ) server <- function(input, output){ rvs <- reactiveValues

Dynamic number of actionButtons tied to unique observeEvent

放肆的年华 提交于 2021-02-19 01:16:13
问题 I'd like to generate a dynamic number of actionButtons, and then have each generated button print its number to the console. This is my best attempt so far, but I still can't get the observeEvent for each of the first 10 buttons to recognize the button clicks. How do I tie the buttons to an observeEvent? library(shiny) ui <- basicPage( fluidRow( actionButton(inputId = "add_button", label = "Add Button") ), uiOutput("more_buttons") ) server <- function(input, output){ rvs <- reactiveValues

Shiny App unable to start on shiny server

≡放荡痞女 提交于 2021-02-18 20:11:27
问题 I want to deploy a Shiny app on the Shiny server but not able to access the app from the local server URL. This is the output of /var/log/shiny-server.log : [2016-04-11 21:39:24.302] [INFO] shiny-server - Starting listener on 0.0.0.0:3838 [2016-04-11 21:42:29.564] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization. [2016-04-11 21:42:29.570] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization. [2016-04-11

Shiny App unable to start on shiny server

南笙酒味 提交于 2021-02-18 20:11:26
问题 I want to deploy a Shiny app on the Shiny server but not able to access the app from the local server URL. This is the output of /var/log/shiny-server.log : [2016-04-11 21:39:24.302] [INFO] shiny-server - Starting listener on 0.0.0.0:3838 [2016-04-11 21:42:29.564] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization. [2016-04-11 21:42:29.570] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization. [2016-04-11

Shiny App unable to start on shiny server

♀尐吖头ヾ 提交于 2021-02-18 20:10:17
问题 I want to deploy a Shiny app on the Shiny server but not able to access the app from the local server URL. This is the output of /var/log/shiny-server.log : [2016-04-11 21:39:24.302] [INFO] shiny-server - Starting listener on 0.0.0.0:3838 [2016-04-11 21:42:29.564] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization. [2016-04-11 21:42:29.570] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization. [2016-04-11

Shiny App unable to start on shiny server

狂风中的少年 提交于 2021-02-18 20:09:03
问题 I want to deploy a Shiny app on the Shiny server but not able to access the app from the local server URL. This is the output of /var/log/shiny-server.log : [2016-04-11 21:39:24.302] [INFO] shiny-server - Starting listener on 0.0.0.0:3838 [2016-04-11 21:42:29.564] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization. [2016-04-11 21:42:29.570] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization. [2016-04-11

Run R script after input in Shiny

我与影子孤独终老i 提交于 2021-02-18 19:45:23
问题 Good morning everyone, I have a Shiny application that collects 5 inputs from the users and stores them into variables. Then, I would be able to use another R script that would run based on the information provided by the user. Here is a sample of my Shiny App : jscode <- "shinyjs.closeWindow = function() { window.close(); }" #Define UI for application ui <- pageWithSidebar( #App title headerPanel("Filters applied for Powerpoints"), #Panel to display the filters sidebarPanel( #Select dates

Open Link on Datapoint Click with Plotly in R Shiny

☆樱花仙子☆ 提交于 2021-02-18 19:01:19
问题 I'm working with Plotly in R to develop a Shiny web app. I've put together an interactive scatterplot and configured the hovertext with the information I want. My implementation is as follows: plot_ly(data=partition, x=~get(x), y=~get(y), color=~SenderS, colors="Set1", text=~paste("Link(s): <a href='", partition$Link,"'>", partition$Link, "</a>", "<br>Date: ", partition$Date, "<br>Parties: ", partition$SenderS, " to ", partition$Target, "<br>", x_og, ": ", partition[,x], "<br>", y_og, ": ",