I have seen a ton of examples for either Shiny or Shiny Dashboard apps with all of the code living in either one file, or two files (ui and server). I personally like to compartmentalize my code in a way that's manageable, and easy to break out or re-use.
With that being said, I created this repo to serve as a template for Shiny Dashboard apps. Really basic, nothing crazy, simplistic file structure. If there is anything I missed, feel free to create a pr :) Like I said, this is a template/boilerplate.
-
Make sure you have R installed (Pretty important step in this process lol)
-
Through your favorite R interface, be sure you
install.packages
for both shiny and shinydashboard. -
Clone this repo
-
You should be good to go!! Make sure your cwd is set to the base level of this repo. run
shinyApp()
in your console, or click theRun App
button in RStudio.
Good luck, and happy coding :)