Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(easyVerification)
  Loading required package: SpecsVerification
  > 
  > test_check("easyVerification")
  1. Failure: Reference forecasts for skill scores (@test_veriApply.R#51) --------
  <... isn't true.
  
  
  2. Error: Multidimensional probability and absolute thresholds (@test_veriApply.R#60) 
  non-conformable arrays
  1: expect_equal(veriApply("EnsRpss", fcst = fcst, obs = obs, prob = 1:2/3), veriApply("EnsRpss", 
         fcst = fcst, obs = obs, prob = prob)) at testthat/test_veriApply.R:60
  2: compare(object, expected, ...)
  3: veriApply("EnsRpss", fcst = fcst, obs = obs, prob = 1:2/3)
  4: Tmatrix(pbapply::pbapply(xall[xmask, , , drop = F], MARGIN = 1, FUN = veriUnwrap, 
         verifun = verifun, nind = nind, ref.ind = ref.ind, ...))
  5: pbapply::pbapply(xall[xmask, , , drop = F], MARGIN = 1, FUN = veriUnwrap, verifun = verifun, 
         nind = nind, ref.ind = ref.ind, ...)
  6: FUN(array(newX[, i], d.call, dn.call), ...)
  7: vfun(convert2prob(x[, 1:nens, drop = FALSE], prob = prob, threshold = threshold), 
         convert2prob(xref, prob = prob, threshold = threshold), convert2prob(x[, nn], 
             prob = prob, threshold = threshold), ...)
  8: SkillScore(EnsRps(ens = ens, obs = obs, format = format), EnsRps(ens = ens.ref, obs = obs, 
         format = format), handle.na = "use.pairwise.complete")
  9: stopifnot(length(scores) == length(scores.ref))
  10: EnsRps(ens = ens, obs = obs, format = format)
  11: rowSums((ens.cum/R - obs.cum)^2)
  12: is.data.frame(x)
  
  3. Error: Reference forecasts (@test_veriApply.R#91) ---------------------------
  non-conformable arrays
  1: expect_equal(veriApply("FairRpss", fcst = fcst, obs = obs, prob = 1:2/3), veriApply("climFairRpss", 
         fcst = fcst, obs = obs, prob = 1:2/3)) at testthat/test_veriApply.R:91
  2: compare(object, expected, ...)
  3: veriApply("FairRpss", fcst = fcst, obs = obs, prob = 1:2/3)
  4: Tmatrix(pbapply::pbapply(xall[xmask, , , drop = F], MARGIN = 1, FUN = veriUnwrap, 
         verifun = verifun, nind = nind, ref.ind = ref.ind, ...))
  5: pbapply::pbapply(xall[xmask, , , drop = F], MARGIN = 1, FUN = veriUnwrap, verifun = verifun, 
         nind = nind, ref.ind = ref.ind, ...)
  6: FUN(array(newX[, i], d.call, dn.call), ...)
  7: vfun(convert2prob(x[, 1:nens, drop = FALSE], prob = prob, threshold = threshold), 
         convert2prob(xref, prob = prob, threshold = threshold), convert2prob(x[, nn], 
             prob = prob, threshold = threshold), ...)
  8: FairRps(ens, obs)
  9: EnsRps(ens, obs, R.new = Inf, format)
  10: rowSums((ens.cum/R - obs.cum)^2)
  11: is.data.frame(x)
  
  testthat results ================================================================
  OK: 101 SKIPPED: 0 FAILED: 3
  1. Failure: Reference forecasts for skill scores (@test_veriApply.R#51) 
  2. Error: Multidimensional probability and absolute thresholds (@test_veriApply.R#60) 
  3. Error: Reference forecasts (@test_veriApply.R#91) 
  
  Error: testthat unit tests failed
  Execution halted