[R-pkg-devel] rstan issue [Was: CRAN submission error when running tests in testthat]

2021-11-25 Thread Simon Urbanek
Kevin, thanks, that's very helpful! So this is a serious bug in rstan - apparently they only do that on macOS which explains why other platforms don't see it: .onLoad <- function(libname, pkgname) { [...] ## the tbbmalloc_proxy is not loaded by RcppParallel which is linked ## in by default

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

2021-11-25 Thread Kevin Ushey
That shouldn't be happening, at least not by default. However, RcppParallel does ship with tbbmalloc_proxy, which is a library that, when loaded, will overload the default allocators to use TBB's allocators instead. The intention is normally that these libraries would be loaded via e.g. LD_PRELOAD

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

2021-11-25 Thread Simon Urbanek
Nathan, testthat is notorious for obfuscation and unhelpful output as can be clearly seen in the head of testthat.Rout.fail: > library(testthat) > library(BCEA) Attaching package: 'BCEA' The following object is masked from 'package:graphics': contour > > test_check("BCEA") *** caugh

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

2021-11-25 Thread Ivan Krylov
On Thu, 25 Nov 2021 12:33:01 +0100 Gábor Csárdi wrote: > Are you sure about this? I don't think testthat hides any output. R > CMD check on the other hand AFAICT only shows the last 13 lines by > default. See the _R_CHECK_TESTS_NLINES_ environment variable in > https://cran.r-project.org/doc/manu

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

2021-11-25 Thread Gábor Csárdi
On Thu, Nov 25, 2021 at 11:49 AM Ivan Krylov wrote: > > On Wed, 24 Nov 2021 16:37:44 + (UTC) > Nathan Green via R-package-devel 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 p

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

2021-11-25 Thread Ivan Krylov
On Wed, 24 Nov 2021 16:37:44 + (UTC) Nathan Green via R-package-devel 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 out

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

2021-11-25 Thread Nathan Green via R-package-devel
Hi, I've getting an ERROR when submitting a new release of our package BCEA to CRAN which I'm having problems understanding and reproducing. Its passing CHECK locally and GitHub Actions standard check (https://github.com/n8thangreen/BCEA/actions/runs/1494595896). The message is something to do w