Skip to content

R package to create a shiny app template with Distill theme.

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

hamilton-institute/appMaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

appMaker

The goal of appMaker is to create apps with the Hamilton Institute Distill theme.

Installation

You can install the appMaker from GitHub with:

# install.packages("devtools")
devtools::install_github("hamilton-institute/appMaker")

Creating a simple app

To create a simple app you need to run:

library(appMaker)

create_simple_app(path = "~/Desktop/myApp")

The code above will create a RStudio project called myApp at your Desktop folder (change the path to a existing folder if you don’t have a Desktop folder). A new RStudio session will open automatically with this project open.

The created project has a placeholder app in the app.R file. To create your app, you need to modify the ui object and server function in this file. If you want to keep the Distill theme, do not remove the hamiltonThemes:: functions.

Creating a dashboard

To create a dashboard you need to run:

library(appMaker)

create_dash(path = "~/Desktop/myDashboard")

The code above will create a RStudio project called myDashboard at your Desktop folder (change the path to a existing folder if you don’t have a Desktop folder). A new RStudio session will open automatically with this project open.

The created project has a placeholder golem shiny app. Golem uses shiny modules, so you have the modify the app_ui.R, app_server.R and all mod_.R files to create your app.

A golem shiny app is a R package, what is great to develop any app with too many lines of code. To run the app, run devtools::load_all() to load all functions at R folder. After that, run the run_app() function in the Console.

If you want to keep the Distill theme, do not remove the hamiltonThemes:: functions.

About

R package to create a shiny app template with Distill theme.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published