Demonstration of test driven development in R with testthat (CC269)

March 28, 2024 • PD Schloss • 1 min read

In test driven development you write the tests first, have them fail, and then write your code to pass the tests. In this episode, Pat provides a demonstration of TDD for two functions he’s written to extract k-mers from a DNA sequence. This part of a larger effort to develop his phylotyper R package that will use kmer-based methods of classifying 16S rRNA gene sequences to their correct bacterial taxonomy.

Code

You can browse the state of the repository at the