Example shows how to make single file Shiny application with shinydashboard R package.
shinydashboard
Single file Shiny app with shinydashboard