Running ‘testthat.R’ [39s/53s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(reservr)
  > 
  > test_check("reservr")
  ── Skip ('/data/gannet/ripley/R/packages/tests-devel/reservr.Rcheck/tests/testthat/helpers.R:13:3'): set floatx to 64-bit ──
  Reason: TensorFlow not available for testing
  
  [ FAIL 8 | WARN 0 | SKIP 29 | PASS 1205 ]
  
  ══ Skipped tests (29) ══════════════════════════════════════════════════════════
  • TensorFlow not available for testing (29): 'test-dist_beta.R:16:3',
    'test-dist_binomial.R:26:3', 'test-dist_blended.R:108:3',
    'test-dist_dirac.R:25:3', 'test-dist_discrete.R:39:3',
    'test-dist_erlangmix.R:67:3', 'test-dist_erlangmix.R:112:3',
    'test-dist_exponential.R:17:3', 'test-dist_gamma.R:17:3',
    'test-dist_genpareto.R:42:5', 'test-dist_lognormal.R:17:3',
    'test-dist_mixture.R:60:3', 'test-dist_negbinomial.R:18:3',
    'test-dist_normal.R:17:3', 'test-dist_pareto.R:17:3',
    'test-dist_poisson.R:18:3', 'test-dist_translate.R:56:3',
    'test-dist_trunc.R:42:3', 'test-dist_uniform.R:21:3',
    'test-dist_weibull.R:17:3', 'test-interval.R:159:3', 'test-tf_fit.R:2:3',
    'test-tf_fit.R:74:3', 'test-tf_fit.R:127:3', 'test-tf_fit.R:179:3',
    'test-tf_fit.R:239:3', 'test-tf_fit.R:281:3', 'test-tf_fit.R:332:3',
    'test-tf_initialise.R:2:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-dist_erlangmix.R:16:3'): erlang mixture distribution works ───
  `fit(dist, x, init = "shapes", shapes = as.numeric(params$shapes))` produced output.
  ── Failure ('test-dist_erlangmix.R:18:3'): erlang mixture distribution works ───
  `fit(dist, x, init = "fan", spread = 3L)` produced output.
  ── Failure ('test-dist_erlangmix.R:20:3'): erlang mixture distribution works ───
  `fit(dist, x, init = "kmeans")` produced output.
  ── Failure ('test-dist_erlangmix.R:21:3'): erlang mixture distribution works ───
  `fit(dist, x, init = "cmm")` produced output.
  ── Failure ('test-dist_mixture.R:21:3'): test dist_mixture ─────────────────────
  `fit(dist, x)` produced output.
  ── Failure ('test-distribution_generics.R:18:3'): fit_dist_direct works ────────
  `fit_result <- fit_dist(dist, x)` produced output.
  ── Failure ('test-distribution_generics.R:19:3'): fit_dist_direct works ────────
  `direct_fit_result <- fit_dist_direct(dist, x)` produced output.
  ── Error ('test-distribution_methods.R:10:3'): test quantile.Distribution ──────
  Error in `uniroot(diff_prob, lower = q0_min, upper = .start, prob_target = prob)`: lower < upper  is not fulfilled
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(quantile(dist, p, start = 0), x, tolerance = 1e-04) at test-distribution_methods.R:10:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─stats::quantile(dist, p, start = 0)
   5. └─reservr:::quantile.Distribution(dist, p, start = 0)
   6.   └─stats::uniroot(diff_prob, lower = q0_min, upper = .start, prob_target = prob)
  
  [ FAIL 8 | WARN 0 | SKIP 29 | PASS 1205 ]
  Error: Test failures
  Execution halted