Skip to content

Instantly share code, notes, and snippets.

@chasemc
Created June 6, 2019 14:13
Show Gist options
  • Save chasemc/f09d76b4570288c91f023c58869ffb05 to your computer and use it in GitHub Desktop.
Save chasemc/f09d76b4570288c91f023c58869ffb05 to your computer and use it in GitHub Desktop.
R/Pharma draft outline

What is continuous deployment (CD)?

Why CD?

  • Reproducible and easy deliverables
    • Missing link... how do we know an output came from the latest version of code?
    • A majority of R users can't associate a knitted report to the code version
  • Delivering R-based software (Shiny, Plumber, etc)

CD for Shiny

  • Opinionated way to structure an app for production:
    • Mostly similar to ThinkR-open/golem
    • Requires a Shiny app as a package
    • Code testing
  • New R package for deploying Shiny apps as Electron applications:
    • chasemc/electricShine
  • How this looks in practice:
    • chasemc/IDBacApp
  • How to get started/minimal examples of combining Shiny and CD:
    • chasemc/demoApp
    • chasemc/processView

CD for Rmarkdown/Plumber

  • Using CD to make reproducible Rmarkdown reports:
    • It turns out most people aren't
  • Example setup:
    • chasemc/autoReportR

Combining CD with Drake

  • Match made in heaven?
    • Drake only runs what needs to be run
    • CD automates and versions output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment