# Fluid page (responsive)
ui <- fluidPage(
titlePanel("My App"),
# Content adapts to screen size
fluidRow(
column(4, "Sidebar"),
column(8, "Main content")
)
)
# Fixed page (consistent width)
ui <- fixedPage(
titlePanel("My App"),
# Max width ~1170px, centered
fixedRow(
column(4, "Sidebar"),
column(8, "Main content")
)
)When to Use
fluidPage: Dashboards, public apps, mobile-friendly
fixedPage: Scientific tools, consistent presentation
