Skip to content
Prev 4094 / 10988 Next

[Rcpp-devel] How to manage testing code for Rcpp based project?

If there are only a few things needed to be code in C++ and everything
else is in R, then there should be only a few C++ files, which are
basically most R packages have (if they have any C++ code at all).
When there are a lot of files in C++, I think that given the
limitation in organizing the test code in R packages, it is probably
better to make a stand alone C++ package, and just call some functions
from the C++ package later to export the function to R.

This is my current understanding of the best development strategy.
Please don't hesitate to correct me if my understanding is not
precise.