Skip to content

[Bioc-devel] unit tests for C code inside a package

2 messages · Dan Tenenbaum, Elena Grassi

#
----- Original Message -----
Choose a C-based unit-testing library, include it with your package, write a C function that calls your test suite, register that function to be callable from R, and call it from an R unit test?

Dan
#
Thank you both for your suggestions.

Peter: Rcpp attributes seem great but right now I would prefer to
avoid changing all the pure C structs of my old codebase in C++
classes and so on. But if in the future we will need to add new
features I will definitely add these two ++ :)
Dan: yep, that was roughly my idea, I wanted to check if that's reasonable/ok.

E.