【发布时间】:2019-12-27 19:30:10
【问题描述】:
我在shinydashboard 中遇到问题,我正在编写的方程式在放入box 时没有换行。这些方程式超出了box 的限制。 MWE:
library(shinydashboard)
library(shiny)
# UI
ui <- dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(
fluidRow(
column(width = 6,
box("Long Equation", width = 12,
h3(withMathJax("$$ \\alpha + \\beta + \\gamma + \\delta + \\alpha + \\beta + \\gamma + \\delta + \\alpha + \\beta + \\gamma + \\delta + $$")))
)
)
)
)
# Server
server <- function(input, output) {
}
# Run the application
shinyApp(ui = ui, server = server)
这个例子产生:
boxes 中的数据框也有同样的问题,但在网上找不到任何答案。有没有人可以确保box 的内容不会超出box 的边界?
【问题讨论】:
标签: r shiny shinydashboard