我正在使用rhandsontable创建一个供用户编辑的表。我注意到,如果将右下角的框拖过最后一个框,则可以调整数据框的大小。是否有选项或解决方案可以关闭可调整大小的数据帧?
library(shiny)
library(rhandsontable)
server = (function(input, output, session) {
output$hot = renderRHandsontable({
DF = data.frame(val = 1:10, bool = TRUE, big = LETTERS[1:10],
small = letters[1:10],
dt = seq(from = Sys.Date(), by = "days", length.out = 10),
stringsAsFactors = FALSE)
rhandsontable(DF, readOnly = TRUE, width = 550, height = 300) %>%
hot_col("val", readOnly = FALSE)
})
})
ui = (fluidPage(
rHandsontableOutput("hot")
))
shinyApp(ui = ui, server = server)