Closed markmfredrickson closed 8 years ago
It's actually a bit simpler than that. It looks like the current version of testthat has a bug. Basically, the error string being searched for ends with a period. The actual error returned by fullmatch
doesn't. The current version of testthat doesn't catch it. The new version does. I pushed up a fix.
Of note, this new version of testthat throws a "W" whenever it hits an unexpected warning. We get, unsurprisingly, over 100. I don't immediately see a way to disable that; perhaps this is a wakeup call to reign in the number of warnings we return? (Note this does not affect check, only test.)
Open issues aside, I see nothing holding us back (code-wise) from pushing a new version up. All checks/build pass without incidence. We do get one warning when building on windows,
* checking CRAN incoming feasibility ... WARNING
Possibly mis-spelled words in DESCRIPTION:
GLM (6:63)
Mahalanobis (7:49)
covariate (5:5)
fullmatch (8:61)
The NEWS file did not appear to be updated for 0.9-5. Looking through closed issues since then, the large ones are #30 and #57.
I've been slowly going through the various warnings in the test files and cleaning them up over the last week or so, and b0e2894 contains my results. With the latest version of testthat
from github (updated today, 3/29/16, via devtools::install_github("hadley/testthat")
, all tests pass with no warnings, and all deprecated testthat functions have been updated, so we should be 100% for the new push of testthat to CRAN.
The spelling issues in my last comment have been addressed offline, and Ben has updated the NEWS file. make check
and CRAN's win-builder both pass us with no notes or warnings. (win-builder likely uses the older version of testthat
that is currently on CRAN, so we pass all tests there too.)
While we still haven't pushed the next version up, the concerns in this issue have been addressed.
I got the following from Hadley Wickam (an automated message). Basically we just need to replace a test string with the complete error message, not just the first part of the message.