I'm currently preparing a resubmission to fix a few bugs that threatens the removal of our package.
Despite passing R CMD CHECK --as-cran locally, and on rhub on CRAN-like runners, I keep tripping
with an incoming check with Debian (log).
Flavor: r-devel-linux-x86_64-debian-gcc
Check: tests, Result: NOTE
Running 'testthat.R' [937s/57s]
Running R code in 'testthat.R' had CPU time 16.5 times elapsed time
This is intriguing for a few reasons:
There is no parallel processing in our package code
I cannot replicate this elsewhere
It seems to be only on Debian
I found Dirk Eddelbuettel's very thorough solution to managing code that uses more than one CPU on CRAN however, I am hesitant in implementing this because of the reasons above.
Would an R-package-fairy-god-mother have any kind words of advice to reproduce the note and show me a trick or two to manage it please?
Thanks so much @jdblischak, I must brush up my searching skills.
Adding Sys.setenv("OMP_THREAD_LIMIT" = 2). to my testthat.R file enabled the package to pass all the CRAN tests and incoming checks.
Its now on its way to CRAN!
I've always been so dissuaded to edit testthat.Rbut this is a great example of when to make an exception!