Conflict with dateInput and dateRangeInput within shiny app
Closed this issue · 1 comments
kismsu commented
Hi, I've noticed that 0.4.3 version, maybe due to the way it uses jQuery conflicts with datepiker in shiny app.
For example, the following code
library(ggvis)
library(shiny)
ui <- shinyUI(
fluidPage(
dateRangeInput(inputId = "date1", label = "Date:",
start = "1997-01-14",
end = Sys.Date()),
ggvisOutput("chart")
)
)
server <- function(input, output) {
mtcars %>%
ggvis(~wt, ~mpg) %>%
layer_points() %>%
bind_shiny("chart")
}
shinyApp(ui, server)
Generates app with dateRangeInput wich doesn't work and no ggvis output. If you comment out ggvis part, date selection works, the same story when you turn off date selections - app shows the chart.
I've tested this with shiny 0.13 and shiny 0.14, and both have this problem. ggvis 0.4.2 works fine.
Session info ----------------------------------------------------------------------------------
setting value
version R version 3.2.1 (2015-06-18)
system x86_64, linux-gnu
ui RStudio (0.99.467)
language en_GB:en
collate en_GB.UTF-8
tz <NA>
date 2016-09-16
Packages --------------------------------------------------------------------------------------
package * version date source
assertthat 0.1 2013-12-06 CRAN (R 3.2.1)
DBI 0.5-1 2016-09-10 CRAN (R 3.2.1)
devtools * 1.12.0 2016-06-24 CRAN (R 3.2.1)
digest 0.6.10 2016-08-02 CRAN (R 3.2.1)
dplyr 0.4.3 2015-09-01 url
ggvis * 0.4.3 2016-07-22 CRAN (R 3.2.1)
htmltools 0.3.6 2016-08-23 Github (rstudio/htmltools@6996430)
httpuv 1.3.3 2015-08-04 CRAN (R 3.2.1)
jsonlite 1.1 2016-09-14 cran (@1.1)
lazyeval 0.2.0.9000 2016-08-18 Github (hadley/lazyeval@c155c3d)
magrittr 1.5 2014-11-22 CRAN (R 3.2.1)
memoise 1.0.0 2016-01-29 CRAN (R 3.2.1)
mime 0.5 2016-07-07 cran (@0.5)
R6 2.1.3 2016-08-19 CRAN (R 3.2.1)
Rcpp 0.12.7 2016-09-05 CRAN (R 3.2.1)
shiny * 0.14 2016-09-10 CRAN (R 3.2.1)
withr 1.0.0 2015-09-23 CRAN (R 3.2.1)
xtable 1.8-2 2016-02-05 CRAN (R 3.2.1)
wch commented
This has been fixed in Shiny: rstudio/shiny#1374.