Closed barracuda156 closed 11 months ago
@barracuda156 - thanks for the report!
@barracuda156 - thanks for the report!
@joethorley Is this something that we could fix?
P. S. I have encountered rounding issues with a couple of other R packages, but no solution so far. It seems that at least in some cases it is neither PPC nor 32-bit issue, but rather something caused by MacOS handling.
@barracuda156 If you are able to identify the exact cause of the rounding issues that would be extremely helpful. Otherwise I just have to reduce the number of significant digits on the tests which is extremely unsatisfactory.
@barracuda156 If you are able to identify the exact cause of the rounding issues that would be extremely helpful. Otherwise I just have to reduce the number of significant digits on the tests which is extremely unsatisfactory.
I have ran tests on 10.6.8/x86_64, everything passes, so in this case it is apparently 32-bit issue.
That is good to know!
@barracuda156 - I've updated the tests so that by default they only test data snapshots to 6 significant figures.
Can you test if mcmcr now passes on PowerPC 32 bit?
@joethorley Sure, will try tonight. Thank you!
@joethorley Yes, all good now, thank you for addressing this!
R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: powerpc-apple-darwin10.0.0d2 (32-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(testthat)
> library(mcmcr)
>
> test_check("mcmcr")
[ FAIL 0 | WARN 0 | SKIP 3 | PASS 436 ]
══ Skipped tests (3) ═══════════════════════════════════════════════════════════
• On CRAN (3): 'test-converged.R:31:3', 'test-ess.R:23:3',
'test-estimates.R:4:3'
[ FAIL 0 | WARN 0 | SKIP 3 | PASS 436 ]
Deleting unused snapshots:
• converged/converged.csv
• ess/ess.csv
• estimates/estimates.csv
>
> proc.time()
user system elapsed
47.322 1.892 55.528
That's good news!