Get access to all lessons in this course.
-
Setup packages
- devtools and usethis
- Package names and authors
- Choose a license
- Setup git + GitHub
-
Write code
- Writing functions
- Adding functions to our package
- Using other packages
- Packages so good they get their own functions
- Organizing .R files
-
Document
- roxygen2: In-Line Documentation for R
- Argument descriptions and examples
- Helper functions
- Joining documentation
-
Test
- Unit tests for R
- Organizing tests
- R CMD Check
- Types of Test Files
- Test Coverage
-
Teach
- Examples
- README
- Spellcheck
-
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
Package Development with R
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.
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Your Turn
There is an app in the examples/ folder called plot_app/. It has two Shiny files: ui.R and server.R.
Run use_package(“shiny”)
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
Learn More
You may find Dean Attali's blog post Supplementing your R package with a Shiny app helpful.
You need to be signed-in to comment on this post. Login.