https://github.com/BioPharmSoftGrp/PREP
This project is package in R used to created a Shiny app with a default template and also creates a R package project that the Shiny app links to. View the package website at https://biopharmsoftgrp.github.io/PREP/
https://github.com/BioPharmSoftGrp/PREP
Last synced: 4 months ago
JSON representation
This project is package in R used to created a Shiny app with a default template and also creates a R package project that the Shiny app links to. View the package website at https://biopharmsoftgrp.github.io/PREP/
- Host: GitHub
- URL: https://github.com/BioPharmSoftGrp/PREP
- Owner: BioPharmSoftGrp
- Created: 2020-04-27T23:12:37.000Z (almost 5 years ago)
- Default Branch: dev
- Last Pushed: 2021-09-24T18:56:30.000Z (over 3 years ago)
- Last Synced: 2024-10-16T23:06:13.027Z (6 months ago)
- Language: R
- Homepage:
- Size: 29.9 MB
- Stars: 13
- Watchers: 2
- Forks: 0
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
- jimsghstars - BioPharmSoftGrp/PREP - This project is package in R used to created a Shiny app with a default template and also creates a R package project that the Shiny app links to. View the package website at https://biopharmsoftgrp. (R)
README
[](https://github.com/BioPharmSoftGrp/BaSS/actions)
# Packages fRom tEmPlates (PREP)The PREP package allows users to create shells for R Packages and Shiny applications with minimal configuration. By expanding upon [many](https://r-pkgs.org/) [useful](https://usethis.r-lib.org/) [resources](https://thinkr-open.github.io/golem/) dedicated to this topic, PREP is designed to be both accessible to new users and highly customizable by expert users.
# Creating Apps
For example, the code below creates a an R package containing a Shiny Application and then opens it in a new R session.
```
remotes::install_github("BioPharmSoftGrp/PREP")
library(PREP)
PREP::CreateApp(strName="MyNewApp")
usethis::proj_activate("myNewApp")
```In the new session, the package can be built with `usethis::build()` and then the app can be run with `RunApp()`. Similar workflows for creating standalone shiny apps and standard R packages are described in the getting started vignette.
# Advanced Use
While creating an project with PREP is simple, there are several advanced features that help to streamline the Shiny development lifecycle in complex projects.
- *Flexible Templates* - PREP is built on top of {{usethis}} and {{whisker}} to facilitate highly flexible and reuable app templates.
- *Minimal Dependencies* - Once a new PREP project is created, PREP generally isn't a required dependency.
- *Modularity* - PREP encourages a modular design. The default shiny app is built with Shiny Modules, and helper functions are available to extending packages and modules with testable functions. Combined with the templating functionality, the framework makes it easy to reuse components across projects.