This guide walks through the basic steps of creating a Flexdashboard, setting up necessary packages, resolving common issues, and deploying your dashboard as a Shiny web app for the first time.
To begin, install the flexdashboard
package:
Once installed, restart R and RStudio to avoid conflicts.
To create your first dashboard:
✨ Before diving into interactivity, take a moment to explore the official Flexdashboard gallery & docs — it’s a colorful world of possibilities! 🌍📊 From dynamic charts to interactive maps 🗺️, you’ll find fantastic examples that spark ideas and show just how far you can go. Your dashboard adventure starts here! 🚀
To make your dashboard interactive (using Shiny):
Some older packages may have Compatibility Issues throuwoing errprs. You can install archived versions manually as shown:
install.packages("https://cran.r-project.org/src/contrib/Archive/d3heatmap/d3heatmap_0.6.1.tar.gz",
repos = NULL, type = "source")
install.packages("https://cran.r-project.org/src/contrib/Archive/metricsgraphics/metricsgraphics_0.9.0.tar.gz",
repos = NULL, type = "source")
rsconnect
package:Use the deployApp()
function from
rsconnect
:
rsconnect::deployApp(
appDir = "path/to/your/app/folder",
appName = "your_app_name",
account = "your_account_name",
appPrimaryDoc = "your_file.Rmd"
)
Example:
rsconnect::deployApp(
appDir = "D:/UGA/AcademicCourseWork/Spring-2025/GradFIRST/Rcode/Shiny_Web_App/shiny_webpage/Small_Apps/TinyShinyApps",
appName = "tinyApp_shine_4",
account = "ecocliff",
appPrimaryDoc = "shine_4.R"
)
Once deployed, your app will be live on the web!🎉
Check out my very first one here — yay to shiny beginnings! ✨🙌
runtime: shiny
only when interactivity is
needed.Now go forth and let your dashboards shine!