bs4Dashとは? Rのパッケージで、Shinyアプリの開発を支援するもの。 bs4Dashは、Bootstrap 4のデザインを採用したShinyアプリを開発できる。 インストール install.packages ( "bs4Dash" ) 単純なスクリプト library ( shiny ) library ( bs4Dash ) shinyApp ( ui = dashboardPage ( title = "Basic Dashboard" , header = dashboardHeader ( ) , sidebar = dashboardSidebar ( ) , controlbar = dashboardControlbar ( ) , footer = dashboardFooter ( ) , body = dashboardBody ( ) ) , server = function ( input , output ) { } ) 上記を実行すると以下のような見た目のアプリになります。 一つずつ解説 基本構造 まずLibraryの読み込み。 library ( shiny ) library ( bs4Dash ) ここは、Shinyの骨格 shinyApp ( ui = dashboardPage ( ) , server = function ( input , output ) { } ) ui = dashboardPage にすることでダッシュボードになります。ここは shinydashboard も同様。 ui = dashboardPage ( ) , uiの中身 title title = "Basic Dashboard" ,