Last active
April 16, 2019 10:01
-
-
Save trafficonese/13d615e821c34cdcbcc553531c4707c9 to your computer and use it in GitHub Desktop.
ERROR: [uv_write] broken pipe - ShinyApp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(plotly) | |
library(shinyjqui) | |
library(shinyTree) | |
ui <- fluidPage( | |
shinyTree("tree", dragAndDrop=TRUE), | |
jqui_resizable(plotlyOutput("histo", width="100%", height="420px")), | |
verbatimTextOutput("str") | |
) | |
server <- function(input, output, session) { | |
output$tree <- renderTree({ | |
list( | |
root3 = "234", | |
root1 = list( | |
SubListA = list(leaf1 = "", leaf2 = ""), | |
SubListB = list(leaf1 = "", leaf2 = "") | |
), | |
root2 = list( | |
SubListA = list(leaf1 = "", leaf2 = "") | |
), | |
root4 = list( | |
SubListA = list(leaf1 = "", leaf2 = ""), | |
SubListB = list(leaf1 = "", leaf2 = "") | |
), | |
root5 = list( | |
SubListA = list(leaf1 = "", leaf2 = "") | |
) | |
) | |
}) | |
output$str <- renderPrint({ | |
str(input$tree) | |
}) | |
output$histo <- renderPlotly({ | |
Animals <- c("giraffes", "orangutans", "monkeys") | |
SF_Zoo <- c(20, 14, 23) | |
LA_Zoo <- c(12, 18, 29) | |
data <- data.frame(Animals, SF_Zoo, LA_Zoo) | |
plot_ly(data, x = ~Animals, y = ~SF_Zoo, type = 'bar', name = 'SF Zoo') %>% | |
add_trace(y = ~LA_Zoo, name = 'LA Zoo') %>% | |
layout(yaxis = list(title = 'Count'), barmode = 'stack') | |
}) | |
} | |
shinyApp(ui, server) | |
# > sessioninfo::session_info() | |
# - Session info ------------------------------------------------------------------------------------------------------------------------------------------- | |
# setting value | |
# version R version 3.5.2 (2018-12-20) | |
# os Windows 10 x64 | |
# system x86_64, mingw32 | |
# ui RStudio | |
# language (EN) | |
# collate German_Germany.1252 | |
# ctype German_Germany.1252 | |
# tz Europe/Berlin | |
# date 2019-04-16 | |
# | |
# - Packages ----------------------------------------------------------------------------------------------------------------------------------------------- | |
# package * version date lib source | |
# assertthat 0.2.0 2017-04-11 [1] CRAN (R 3.5.1) | |
# cli 1.0.1 2018-09-25 [1] CRAN (R 3.5.1) | |
# colorspace 1.4-1 2019-03-18 [1] CRAN (R 3.5.3) | |
# crayon 1.3.4 2017-09-16 [1] CRAN (R 3.5.1) | |
# crosstalk 1.0.0 2016-12-21 [1] CRAN (R 3.5.1) | |
# data.table 1.12.0 2019-01-13 [1] CRAN (R 3.5.2) | |
# digest 0.6.18 2018-10-10 [1] CRAN (R 3.5.2) | |
# dplyr 0.8.0.1 2019-02-15 [1] CRAN (R 3.5.2) | |
# ggplot2 * 3.1.0 2018-10-25 [1] CRAN (R 3.5.2) | |
# glue 1.3.0 2018-07-17 [1] CRAN (R 3.5.1) | |
# gtable 0.2.0 2016-02-26 [1] CRAN (R 3.5.1) | |
# htmltools 0.3.6 2017-04-28 [1] CRAN (R 3.5.1) | |
# htmlwidgets 1.3 2018-09-30 [1] CRAN (R 3.5.1) | |
# httpuv 1.5.1.9000 2019-04-11 [1] Github (rstudio/httpuv@da0a7ef) | |
# httr 1.4.0 2018-12-11 [1] CRAN (R 3.5.2) | |
# jsonlite 1.6 2018-12-07 [1] CRAN (R 3.5.2) | |
# later 0.8.0 2019-02-11 [1] CRAN (R 3.5.2) | |
# lazyeval 0.2.1 2017-10-29 [1] CRAN (R 3.5.1) | |
# magrittr 1.5 2014-11-22 [1] CRAN (R 3.5.1) | |
# mime 0.6 2018-10-05 [1] CRAN (R 3.5.2) | |
# munsell 0.5.0 2018-06-12 [1] CRAN (R 3.5.1) | |
# pillar 1.3.1 2018-12-15 [1] CRAN (R 3.5.2) | |
# pkgconfig 2.0.2 2018-08-16 [1] CRAN (R 3.5.1) | |
# plotly * 4.9.0 2019-04-10 [1] CRAN (R 3.5.3) | |
# plyr 1.8.4 2016-06-08 [1] CRAN (R 3.5.1) | |
# promises 1.0.1 2018-04-13 [1] CRAN (R 3.5.1) | |
# purrr 0.3.0 2019-01-27 [1] CRAN (R 3.5.2) | |
# R6 2.4.0 2019-02-14 [1] CRAN (R 3.5.2) | |
# Rcpp 1.0.1 2019-03-17 [1] CRAN (R 3.5.3) | |
# rlang 0.3.4 2019-04-07 [1] CRAN (R 3.5.3) | |
# rstudioapi 0.9.0 2019-01-09 [1] CRAN (R 3.5.2) | |
# scales 1.0.0 2018-08-09 [1] CRAN (R 3.5.1) | |
# sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.5.3) | |
# shiny * 1.3.1 2019-04-12 [1] CRAN (R 3.5.2) | |
# shinyjqui * 0.3.2 2018-07-25 [1] CRAN (R 3.5.3) | |
# shinyTree * 0.2.6 2018-10-05 [1] CRAN (R 3.5.3) | |
# tibble 2.0.1 2019-01-12 [1] CRAN (R 3.5.2) | |
# tidyr 0.8.2 2018-10-28 [1] CRAN (R 3.5.2) | |
# tidyselect 0.2.5 2018-10-11 [1] CRAN (R 3.5.2) | |
# viridisLite 0.3.0 2018-02-01 [1] CRAN (R 3.5.1) | |
# withr 2.1.2 2018-03-15 [1] CRAN (R 3.5.1) | |
# xtable 1.8-3 2018-08-29 [1] CRAN (R 3.5.1) | |
# yaml 2.2.0 2018-07-25 [1] CRAN (R 3.5.1) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment