/validation_rpharma

Repository for R/Pharma 2020 Presentation on an R Package Validation Framework

Primary LanguageHTML

R/Pharma 2020: R Package Validation Framework

Author: Ellis Hughes

twitter: @ellis_hughes

This is the repository for the 2020 R/Pharma presentation R Package Validation Framework`.

Slides

The focus of this presentation is to present an approach to simplify the process of validation of R packages. My motivation and development of this approach comes from developing an internal package that needed validation. The current process required at least three word documents that needed to be updated, approved, and version at every step. If anything changed, most everything had to be rewritten. In addition, by separating the validation process from the package development, duplication of effort was rampant.

In an effort to reduce overhead and increase speed of development, I distilled the elements required of validation and reproduced it as part of the package development process.

Using packages that are already instrumental in modern package development, users can create all the documenting necessary for a validation:

  • Rmarkdown is used to write out the specifications, test cases, and generate the final validation document.
  • Roxygen2 is used to track authorship and ownership of specifications, functions, test cases, and test case code.
  • testthat is used to execute the test case code and record results

I would like to thank my team at Fred Hutch for helping develop this idea and the code to generate the validation.

  • Marie Vendettuoli
  • Anthony Williams
  • Jimmy Fulp
  • Bharathi Lakshminarayanan
  • Rafael Kuttner
  • Alicia Sato
  • Shannon Grant
  • Paul Stutzman
  • Kate Ostbye