Warning when eventReactive() is used

78 views
Skip to first unread message

Marc Girondot

unread,
Jan 14, 2017, 5:56:42 AM1/14/17
to Shiny - Web Framework for R
Hi everyone,

I get this warning when I use eventReactive() and I search for a way to not have it. Any solution ? Thanks:

Warning in structure(NULL, class = "try-error", condition = cond) :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.

Here is the code to produce the warning:
if (interactive()) {
  ui <- fluidPage(
           actionButton("button", "Show 5 data"),
           tableOutput("table")
  )
  server <- function(input, output) {
    df <- eventReactive(input$button, 
      data.frame(A=1:5, B=6:10)
    )
    output$table <- renderTable({
      df()
    })
  }
  shinyApp(ui=ui, server=server)
}


Here is my session information :
> sessionInfo()
R Under development (unstable) (2017-01-02 r71879)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: macOS Sierra 10.12.2

locale:
[1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] HelpersMG_1.8.4 coda_0.19-1     shiny_0.14.2   

loaded via a namespace (and not attached):
 [1] compiler_3.4.0  R6_2.2.0        htmltools_0.3.5 tools_3.4.0     Rcpp_0.12.8     grid_3.4.0     
 [7] jsonlite_1.2    digest_0.6.11   xtable_1.8-2    httpuv_1.3.3    mime_0.5        lattice_0.20-34

Marc Girondot

unread,
Jan 14, 2017, 8:44:54 AM1/14/17
to Shiny - Web Framework for R
The problem is solved with the recent shiny update 1.0.0 !
Thanks to the development team of shiny !

Marc
Reply all
Reply to author
Forward
0 new messages