thijsjanzen / nLTT

Repository for the R nLTT package
GNU General Public License v2.0
6 stars 4 forks source link

Test 'abc_smc_nltt use' fails #26

Closed richelbilderbeek closed 7 years ago

richelbilderbeek commented 7 years ago

Last commit that works: c3e44977d5f7cd3b0a223cfce914c312090bfdf3

I think this is due to a changed nLTTstat_exact function.

richelbilderbeek commented 7 years ago

Fails just the same!

Would there be a back-end problem?

richelbilderbeek commented 7 years ago

Oops.

richelbilderbeek commented 7 years ago

Experiment: re-run older successful version!

Before: before

richelbilderbeek commented 7 years ago

Yuck, that one fails due to HMisc being absent. Tme to Go Back In Time and create a branch called 'patch26'.

richelbilderbeek commented 7 years ago

Older version also fails:

after

richelbilderbeek commented 7 years ago

Also locally, the old version fails:

localerror

richelbilderbeek commented 7 years ago

@thijsjanzen : it appears something has changed beyond the scope of our GitHub

I can fix this by replacing

testthat::expect_equal(
    mean(A),
    ML$minimum[[1]],
    tolerance = 0.05
  )

by

testthat::expect_equal(
    mean(A),
    ML$minimum[[1]],
    tolerance = 0.052 # Higher tolerance
  )

Do I have a go?

thijsjanzen commented 7 years ago

I'm unsure why this fails, but a tolerance of 0.052 seems reasonable (however, with the same seeds, this should never fail). Also, can't the HMisc issue be solved other than reverting to an old version?

richelbilderbeek commented 7 years ago

OK, I'll increase the tolerance.

Fixing Hmisc is just removing it from DESCRIPTION.

thijsjanzen commented 7 years ago

Feel free to transition the package to packrat @richelbilderbeek :D