Skip to content

mjfrigaard/sap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sap

Code examples for Shiny App-Packages


sap

sap provides the code examples in for the Shiny App-Packages book and the Developing & Testing Your Shiny Application workshop provided at R in Pharma (2023).

Movie review data application

The original code and data for the Shiny app comes from the Building Web Applications with Shiny course.

Using code examples

The branches in this repo contain a Shiny application in the various stages of development. The best way to access each branch/app is with the shinypak package.

# install.packages("pak")
pak::pak("mjfrigaard/shinypak")
library(shinypak)

List all the apps with list_apps()

head(list_apps())
#>                  branch        last_updated
#> 2     01_whole-app-game 2024-01-01 14:11:32
#> 1        02.1_shiny-app 2024-01-04 13:05:58
#> 4       02.2_movies-app 2024-01-04 13:07:59
#> 5         02.3_proj-app 2024-01-04 13:08:58
#> 6      03.1_description 2024-01-04 13:10:00
#> 7            03.2_rproj 2024-01-04 13:25:06

Launch an app with launch()

launch(app = "02.3_proj-app")

Or use the terminal

git clone https://github.com/mjfrigaard/sap.git
cd sap
git checkout <branch_name>
open sap.Rproj

Branches

View all the applications in the sap branches.

02.1_shiny-app

The 02.1_shiny-app is a bare-minimum Shiny application project:

├── README.md
├── app.R
└── sap.Rproj

1 directory, 3 files

About

A collection of {S}hiny {A}pp-{P}ackages

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages