# install.packages('pak')
pak::pak('mjfrigaard/shinypak')
library(shinypak)Deploy
Expand the callout boxes below to review the previous testing chapters:
Deploy
This section covers six ways to deploy a Shiny app-package: 1) publishing to Posit Connect Cloud, 2) Docker images and containers, 3) using GitHub Actions for Continuous Integration (CI) and Continuous Deployment (CD), 4) running the app in the browser with webR and shinylive, 5) building desktop installers with shinyelectron, and 6) building and deploying a package website with pkgdown.
New topics
I’ve added the topic below to the GitHub Actions chapter after the release of version 4.0.0 of covr:
- Test coverage: a workflow that measures test coverage on every push. It writes a coverage table to the job summary and publishes a coverage badge for our
README, so we don’t need a coverage service like Codecov.
The workflow sets NOT_CRAN to true, so our shinytest2 tests run and count toward coverage (see New topics).
Docker
Docker covers how using Docker can simplify setting up your R environment and reduce the “it works on my machine” problem:
GitHub Actions
Continuous Integration/Continuous Deployment (CI/CD) can be implemented for your Shiny app-package using GitHub actions. This chapter covers the following workflows:
webR
webR runs R in the browser, so a shinylive app needs no server. This chapter covers:
Desktop apps
shinyelectron packages a Shiny app as a desktop installer. This chapter covers:
Package websites
pkgdown helps us easily create websites for our app-packages. This chapter covers: