Closed hadley closed 9 years ago
@hadley Thanks for this, now that the new testthat is available on CRAN I guess I can release this. I hadn't done so earlier as the fix requires this skip_if_not_installed()
function which wasn't available on previous testthat
versions. Not sure what the right strategy is in such cases.
I think the best practice is to make it conditional, i.e.
if (packageVersion("testthat") >= "0.10.0") {
testthat::skip_if_not_installed(...)
}
but that's a reasonable amount of work for little gain in many cases.
You can use
skip_if_not_installed()
to avoid this problem.