Get access to all lessons in this course.
Package Development with R
- devtools and usethis
- Package names and authors
- Choose a license
- Setup git + GitHub
- Writing functions
- Adding functions to our package
- Using other packages
- Packages so good they get their own functions
- Organizing .R files
- roxygen2: In-Line Documentation for R
- Argument descriptions and examples
- Helper functions
- Joining documentation
- Unit tests for R
- Organizing tests
- R CMD Check
- Types of Test Files
- Test Coverage
Add data and files
- Store data and files
- Include data for tests and create RMarkdown templates
- Create other templates
- Launch and store Shiny apps
- Citations, ignoring files, and including add-ins
Launch and store Shiny apps
This lesson is locked
This lesson is called Launch and store Shiny apps, part of the Package Development with R course. This lesson is called Launch and store Shiny apps, part of the Package Development with R course.
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
There is an app in the examples/ folder called plot_app/. It has two Shiny files: ui.R and server.R.
Create a folder in inst/ called shinyapps
Create an R file with use_r() called “launch_app.”
Write a function to launch the app
Add a roxygen skeleton and add a title and describe any parameters you used (if you used any)
Re-build your package and launch the app with your function
You may find Dean Attali's blog post Supplementing your R package with a Shiny app helpful.