About the AuthorFollow on Twitter Visit Website More Content by Karl Broman
R qtl2: Rewrite of a very old R package - Karl Broman
For nearly 20 years, I've been developing, maintaining, and supporting an R package, R/qtl, for mapping quantitative trait loci (genetic loci that contribute to variation in quantitative traits, such as blood pressure) in experimental crosses (such as in mice). It's a rather large package, with 39k lines of R code, 24k lines of C code, and nearly 300 user-accessible functions. In the past several years, I've been working on rewriting the package, to better handle high-dimensional data and more complex experimental crosses. This has been a good opportunity to take advantage of many new tools, including Rcpp, Roxygen2, and testthat. I'll describe my efforts to avoid repeating the mistakes I made the first time around.