Running ‘testthat.R’ [68s/100s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bumbl)
  > 
  > test_check("bumbl")
  Warning: Search for optimal switchpoint did not converge for colonyID '104'. Omitting from results.
  Warning: Search for optimal switchpoint did not converge for colonyID '17'. Omitting from results.
  Warning: Search for optimal switchpoint did not converge for colonyID '20'. Omitting from results.
  Warning: Search for optimal switchpoint did not converge for colonyID '24'. Omitting from results.
  Warning: cannot find valid starting values: please specify some for colonyID '104'. Omitting from results.
  Warning: cannot find valid starting values: please specify some for colonyID '17'. Omitting from results.
  Warning: cannot find valid starting values: please specify some for colonyID '20'. Omitting from results.
  Warning: cannot find valid starting values: please specify some for colonyID '24'. Omitting from results.
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  Creating plots for 6 colonies...
  Creating plots for 6 colonies...
  Creating plots for 6 colonies...
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 41 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-bumbl.R:82:3): bumbl works with overdispersed count data ────────
  Error in `bumbl(bombus_sub, colonyID = colony, t = week, formula = count ~ 
      week, family = "negbin")`: Model fitting failed for all colonies.
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-bumbl.R:82:2
   2. │ └─base::withCallingHandlers(...)
   3. └─bumbl::bumbl(...)
   4.   └─rlang::abort("Model fitting failed for all colonies.")
  
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 41 ]
  Error: Test failures
  Execution halted