Skip to content
Prev 1307 / 12125 Next

[R-pkg-devel] R CMD Check: Tests running infinite

I don't think it is specific for testthat. R CMD check sets R_TESTS when it
runs the tests, so the separate R process it starts can have some special
startup options.

The problem happens if you start another R process from your R test, and
then R_TESTS confuses this process. (I am not sure how exactly.)

A lot of packages have to work around this:
https://github.com/search?q=user%3Acran+R_TESTS&type=Code

Most of these use testthat, but not all of them.

Gabor

On Mon, Feb 6, 2017 at 2:17 AM, Henrik Bengtsson <henrik.bengtsson at gmail.com