Fix CRAN test failures from Monte Carlo variance on r-oldrel-macos and noLD#76
Merged
Fix CRAN test failures from Monte Carlo variance on r-oldrel-macos and noLD#76
Conversation
Co-authored-by: osorensen <21175639+osorensen@users.noreply.github.com>
Co-authored-by: osorensen <21175639+osorensen@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CRAN issues related to package release
Fix CRAN test failures from Monte Carlo variance on r-oldrel-macos and noLD
Feb 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CRAN reported test failures on r-oldrel-macos and noLD platforms. Test expected
alpha_hat > 0.06but observed0.046due to platform-specific numerical variance in stochastic computations.Changes
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
cloud.r-project.org/usr/lib/R/bin/exec/R /usr/lib/R/bin/exec/R --quiet --vanilla(dns block)esm.ubuntu.com/usr/lib/apt/methods/https /usr/lib/apt/methods/https(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This section details on the original issue you should resolve
<issue_title>CRAN issues</issue_title>
<issue_description>The following issues have appeared after the package got released to CRAN.
Dear maintainer,
Please see the problems shown on
https://cran.r-project.org/web/checks/check_results_BayesMallowsSMC2.html.
Please correct before 2026-02-18 to safely retain your package on CRAN.
Do remember to look at the 'Additional issues'.
The CRAN Team
Here is a summary:
checking tests ... [7s/7s] ERROR
Running ‘testthat.R’ [7s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
Number of particles: 100
Number of timepoints: 100
Number of items: 5
Number of clusters: 1
Log marginal likelihood: -472.34
Final ESS: 63.55
Resampling events: 5/100
BayesMallowsSMC2 Model
Number of particles: 100
Number of timepoints: 100
Number of items: 5
Number of clusters: 1
Log marginal likelihood: -472.34
Final ESS: 63.55
Resampling events: 5/100
BayesMallowsSMC2 Model
Number of particles: 50
Number of timepoints: 100
Number of items: 5
Number of clusters: 1
Log marginal likelihood: -445.30
Final ESS: 35.39
Resampling events: 4/100
BayesMallowsSMC2 Model Summary
Number of particles: 100
Number of timepoints: 100
Number of items: 5
Number of clusters: 1
Log marginal likelihood: -472.34
Final ESS: 63.55
Resampling events: 5/100
Posterior Statistics for Alpha:
Cluster 1: Mean = 0.0359, SD = 0.0238
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 111 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-compute_sequentially_partial.R:11:3'): compute_sequentially works with partial data ──
Expected
alpha_hat> 0.06.Actual comparison: 0.046 <= 0.060
Difference: -0.014 <= 0
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 111 ]
Error:
! Test failures.
Execution halted
checking PDF version of manual ... [2s/2s] OK
DONE
Status: 1 ERROR, 1 NOTE
checking tests ...
Running ‘testthat.R’ [56s/67s]
[56s/68s] ERROR
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
Number of particles: 100
Number of timepoints: 100
Number of items: 5
Number of clusters: 1
Log marginal likelihood: -472.34
Final ESS: 63.55
Resampling events: 5/100
BayesMallowsSMC2 Model
Number of particles: 100
Number of timepoints: 100
Number of items: 5
Number of clusters: 1
Log marginal likelihood: -472.34
Final ESS: 63.55
Resampling events: 5/100
BayesMallowsSMC2 Model
Number of particles: 50
Number of timepoints: 100
Number of items: 5
Number of clusters: 1
Log marginal likelihood: -445.30
Final ESS: 35.39
Resampling events: 4/100
BayesMallowsSMC2 Model Summary
Number of particles: 100
Number of timepoints: 100
Number of items: 5
Number of clusters: 1
Log marginal likelihood: -472.34
Final ESS: 63.55
Resampling events: 5/100
Posterior Statistics for Alpha:
Cluster 1: Mean = 0.0359, SD = 0.0238
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 111 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-c...
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.