testing

Mutation testing for R with mutator

mutator brings mutation testing to R packages: it systematically mutates source code, runs the test suite against each mutant, and reports how many are killed, survived, or timed out.

Beyond Code Coverage: Mutation Testing in R with MutatoR

Bringing mutation testing to R packages with the mutator package.

Testing C++ Code in R Packages

When you write a package in R, you probably write tests. A popular package for unit tests with R is testthat,1 with the final invocation: devtools::test() If your package also includes native code, let’s say, C++, you can test it by testing the R API that exercises the native functions.