【发布时间】:2019-08-04 01:17:22
【问题描述】:
我们如何固定每一行的宽度。 以下是重现错误的示例代码和示例数据文件 (sample data):
library(shiny)
library(readxl)
runApp(
list(
ui = fluidPage(
titlePanel("Use readxl"),
sidebarLayout(
sidebarPanel(
fileInput('file1', 'Choose xlsx file',
accept = c(".xlsx")
)
),
mainPanel(
tableOutput('contents'))
)
),
server = function(input, output){
output$contents <- renderTable({
req(input$file1)
inFile <- input$file1
readxl::read_excel(inFile$datapath, 1)
})
}
)
)
正如我们所观察到的,第一行和第二行的宽度不同。是否有可能使用“DT”来固定行宽? Row width of read xlsm
【问题讨论】: