Skip to content

filter warning using data.table, but not data.frame #149

@bthieurmel

Description

@bthieurmel

Example :

library(shiny)
library(esquisse)
library(nycflights13)
library(data.table)

ui <- fluidPage(
  tags$h1("Use esquisse as a Shiny module"),
  
  esquisse_ui(
    id = "esquisse", 
    header = FALSE, # dont display gadget title
    controls = NULL,
    container = esquisseContainer(height = "700px")
  )
)

server <- function(input, output, session) {
  
  # warning passing data.table
  data_rv <- reactiveValues(data = data.table(nycflights13::flights[1:20000,]), name = "iris")
  
  # no warning passing data.frame !
  # data_rv <- reactiveValues(data = nycflights13::flights[1:20000,]), name = "iris")
  
  esquisse_server(
    id = "esquisse", 
    data_rv = data_rv
  )
  
}
shinyApp(ui, server)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions