[R-pkg-team] Bug#1008754: r-cran-loo: autopkgtest regression on arm64, armhf and i386: missing value where TRUE/FALSE needed

Paul Gevers elbrus at debian.org
Thu Mar 31 20:33:35 BST 2022


Source: r-cran-loo
Version: 2.5.0-1
Severity: serious
User: debian-ci at lists.debian.org
Usertags: regression

Dear maintainer(s),

With a recent upload of r-cran-loo the autopkgtest of r-cran-loo fails 
in testing when that autopkgtest is run with the binary packages of 
r-cran-loo from unstable. It passes when run with only packages from 
testing. In tabular form:

                        pass            fail
r-cran-loo             from testing    2.5.0-1
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration to testing [1]. Can 
you please investigate the situation and fix it?

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=r-cran-loo

https://ci.debian.net/data/autopkgtest/testing/arm64/r/r-cran-loo/20473561/log.gz

BEGIN TEST testthat.R

R version 4.1.3 (2022-03-10) -- "One Push-Up"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: aarch64-unknown-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(loo)
This is loo version 2.5.0
- Online documentation and vignettes at mc-stan.org/loo
- As of v2.0.0 loo defaults to 1 core but we recommend using as many as 
possible. Use the 'cores' argument or set options(mc.cores = NUM_CORES) 
for an entire session. > library(testthat)

Attaching package: 'testthat'

The following object is masked from 'package:loo':

     compare

> Sys.setenv("R_TESTS" = "")
> test_check("loo")
[ FAIL 2 | WARN 0 | SKIP 5 | PASS 860 ]

== Skipped tests 
===============================================================
* On CRAN (5)

== Failed tests 
================================================================
-- Error (test_loo_moment_matching.R:291:3): loo_moment_match_split 
works ------
Error in `if (any(k > too_high)) {
     .warn("Some Pareto k diagnostic values are too high. ", .k_help())
} else if (any(k > high)) {
     .warn("Some Pareto k diagnostic values are slightly high. ", 
   .k_help())
}`: missing value where TRUE/FALSE needed
Backtrace:
     x
  1. \-loo:::loo_moment_match_split(...) at test_loo_moment_matching.R:291:2
  2.   +-base::suppressWarnings(...)
  3.   | \-base::withCallingHandlers(...)
  4.   \-loo:::importance_sampling.default(...)
  5.     \-loo:::importance_sampling.matrix(...)
  6.       \-loo:::do_importance_sampling(...)
  7.         \-loo:::throw_pareto_warnings(pareto_k)
-- Failure (test_psis.R:141:3): psis_smooth_tail returns original tail 
values if k is infinite --
val$k not equal to Inf.
1/1 mismatches
[1] NA - Inf == NA

[ FAIL 2 | WARN 0 | SKIP 5 | PASS 860 ]
Error: Test failures
Execution halted
autopkgtest [15:13:29]: test run-unit-test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/r-pkg-team/attachments/20220331/ffc2a4e6/attachment.sig>


More information about the R-pkg-team mailing list