I am contributing to an R package that makes extensive use of C code for computation.
We have started writing tests for R functions using the testthat package, placing the tests in inst/tests
following instructions here.
Is the testthat package appropriate for testing C functions directly (e.g. those without R interfaces)? Or do we find a separate C testing package? If so, 1) where should these tests go, 2) how do I get them to run during R CMD check
, and 3) is any C testing package particularly appropriate in this context?