사례 연구: R의 Shiny로 웹 애플리케이션 만들기
Dean Attali
Shiny Consultant
tableOutput("table")output$table <- renderTable({ gapminder })

DT::dataTableOutput("table")output$table <- DT::renderDataTable({ gapminder })

DT::dataTableOutput("table")output$table <- DT::renderDataTable({ gapminder })

DT::dataTableOutput("table")output$table <- DT::renderDataTable({ gapminder })

DT::dataTableOutput("table")output$table <- DT::renderDataTable({ gapminder })

DT::dataTableOutput("table")output$table <- DT::renderDataTable({ gapminder })



tabPanel(title = "tab 1", "content goes here")tabPanel(title = "tab 2", "second tab", plotOutput("plot"))
fluidPage(tabsetPanel(tabPanel(title = "tab 1", "first tab content goes here"), tabPanel(title = "tab 2", "second tab", plotOutput("plot")), tabPanel(title = "tab 3", textInput("text", "Name", ""))))

CSS 규칙 문법
#ID {
property: value;
property: value;
...
}
ID는 스타일을 적용할 요소의 ID입니다
Shiny에 CSS를 추가하려면 tags$style()을 사용합니다
ui <- fluidPage(
tags$style("
#ID {
property: value;
}
")
)
ui <- fluidPage(
textInput("name", "Enter your name", "Dean"),
tableOutput("table")
)

ui <- fluidPage(
textInput("name", "Enter your name", "Dean"),
tableOutput("table")
)

ui <- fluidPage(
textInput("name", "Enter your name", "Dean"),
tableOutput("table")
)

ui <- fluidPage(
textInput("name", "Enter your name", "Dean"),
tableOutput("table")
)

css <- "#name { color: red; }#table { background: yellow; font-size: 24px; }"
ui <- fluidPage(tags$style(css),textInput("name", "Enter your name", "Dean"), tableOutput("table") )
사례 연구: R의 Shiny로 웹 애플리케이션 만들기