Here is an example that gives the same problem on chrome but works on safari.
require(shiny)
library(dplyr)
library(ggplot2)
ui <- fluidPage(
titlePanel(title=h4("example", align="center")),
mainPanel(
DT::dataTableOutput('test')
)
)
##server
server <- function(input, output){
x<-tibble(a=c(1,2,3), color=c("red","yellow","white"))
x<-tibble(a=1:(4*10^3), color=c(rep("red", 2*10^3), rep("yellow", 1*10^3), rep("white", 1*10^3) ))
saveRDS(x,"./x.rds")
output$test<-renderDataTable({
data <- readRDS("./x.rds")
result <- datatable(data,
selection = 'single',
rownames=FALSE,
options=list(scrollX=TRUE)
)