4.1 Generic CI/CD pipeline

Generally speaking, a CI/CD pipeline related to an R package is comprised of the following steps:

  • setup a running environment
  • setup R
  • check out the package source code
  • install system dependencies
  • install package dependencies (with caching)
  • build the package
  • checks the package
  • deploy

Most of these steps are implemented by default in Travis CI for an R package. In GitHub Actions, on the other hand, it is currently necessary to manually specify each of them.