我正在使用 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)