[R-pkg-devel] CRAN submission error when running tests in testthat

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Thu Nov 25 11:49:08 CET 2021


On Wed, 24 Nov 2021 16:37:44 +0000 (UTC)
Nathan Green via R-package-devel <r-package-devel using r-project.org> wrote:

> An irrecoverable exception occurred. R is aborting now ...

It seems that some of your dependencies which use compiled code
manage to crash the R process on CRAN Mac machines. Since testthat
normally hides most output from you and it doesn't get a chance to
produce useful output on R process crash, it's hard to determine where
the crash occurs, especially with testthat's backtrace being so long.

Try submitting the package to
<https://mac.r-project.org/macbuilder/submit.html>: that should give
you the full backtrace, at least.

If the *.Rout files from the Mac builder don't pinpoint the culprit, try
passing different reporter= arguments to test_check() and see if any of
them result in verbose logs that show every test being run.
Alternatively, switch some of your tests to the classic R tests, which
produce a verbose .Rout file for every tests/*.R file [*].

-- 
Best regards,
Ivan

[*]
https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Package-subdirectories



More information about the R-package-devel mailing list