Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mjfrigaard/sap
A collection of {S}hiny {A}pp-{P}ackages
https://github.com/mjfrigaard/sap
rstats rstudio shiny
Last synced: 3 months ago
JSON representation
A collection of {S}hiny {A}pp-{P}ackages
- Host: GitHub
- URL: https://github.com/mjfrigaard/sap
- Owner: mjfrigaard
- Created: 2023-10-15T13:28:52.000Z (over 1 year ago)
- Default Branch: 02.1_shiny-app
- Last Pushed: 2024-09-05T04:32:00.000Z (5 months ago)
- Last Synced: 2024-09-05T23:58:50.824Z (5 months ago)
- Topics: rstats, rstudio, shiny
- Language: R
- Homepage:
- Size: 37 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - mjfrigaard/sap - A collection of {S}hiny {A}pp-{P}ackages (R)
README
sap
Code examples for Shiny App-Packages
# sap
`sap` provides the code examples in for the [Shiny App-Packages](https://mjfrigaard.github.io/shiny-app-pkgs/) book and the [Developing & Testing Your Shiny Application](https://mjfrigaard.github.io/dev-test-shiny/) 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](https://rstudio-education.github.io/shiny-course/) 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](https://mjfrigaard.github.io/shinypak/).
```r
# install.packages("pak")
pak::pak("mjfrigaard/shinypak")
library(shinypak)
```List all the apps with `list_apps()`
```r
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()`
```r
launch(app = "02.3_proj-app")
```Or use the terminal
``` bash
git clone https://github.com/mjfrigaard/sap.git
cd sap
git checkout
open sap.Rproj
```------------------------------------------------------------------------
# Branches
View all the applications in the [`sap` branches](https://github.com/mjfrigaard/sap/branches/all).
## `02.1_shiny-app`
The [`02.1_shiny-app`](https://github.com/mjfrigaard/sap/tree/02.1_shiny-app) is a bare-minimum Shiny application project:
```
├── README.md
├── app.R
└── sap.Rproj1 directory, 3 files
```