From 0435041e76cd3693822b5b3b35699aa56a6d98bd Mon Sep 17 00:00:00 2001 From: Maarten Marsman Date: Fri, 5 Jun 2026 20:00:12 +0200 Subject: [PATCH] test: silence advisory verbose output via setup.R (the ~964 nightly warnings) The nightly test suite emitted ~964 warnings. Investigation showed they are almost entirely bgms's advisory verbose output -- the NUTS warmup-length warnings (validate_sampler.R: 'limited proposal SD tuning', 'no mass matrix estimation', etc.), which fire on the short warmup values tests use for speed and are gated by getOption('bgms.verbose', TRUE). (The deprecated-arg occurrences in tests turned out NOT to be the source: nearly all are internal spec/build params or C++ test-export parameter names, not user-facing bgm()/bgmCompare() deprecation calls -- so no arg migration is needed.) Add tests/testthat/setup.R setting options(bgms.verbose = FALSE) for the test run. Tests that specifically assert verbose output already set options(bgms.verbose = TRUE) locally, so they are unaffected. Verified: the high-warning files drop to 0 warnings with 0 new failures. --- tests/testthat/setup.R | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/testthat/setup.R diff --git a/tests/testthat/setup.R b/tests/testthat/setup.R new file mode 100644 index 00000000..0fb3b41f --- /dev/null +++ b/tests/testthat/setup.R @@ -0,0 +1,4 @@ +# Quiet bgms's advisory verbose output (warmup-length warnings, data-cleaning +# messages) during the test run. Tests that specifically assert this output set +# options(bgms.verbose = TRUE) locally, which overrides this default. +options(bgms.verbose = FALSE)