Running 'testthat.R' [103s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(isotracer)
  To automatically run isotracer in parallel on a multicore CPU, you can call:
    options(mc.cores = parallel::detectCores())
  
  
  Attaching package: 'isotracer'
  
  The following object is masked from 'package:stats':
  
      filter
  
  > 
  > test_check("isotracer")
  [ FAIL 2 | WARN 17 | SKIP 0 | PASS 285 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-integration.R:206'): Model with three compartments work ──────
  `{ ... }` threw an error.
  Message: missing values and NaN's not allowed if 'na.rm' is FALSE
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-integration.R:206:12
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─stats::predict(m, f, draws = DRAWS, cores = n_cores) at test-integration.R:206:26
    7. └─isotracer:::predict.networkModel(m, f, draws = DRAWS, cores = n_cores)
    8.   └─purrr::map(...)
    9.     └─isotracer (local) .f(.x[[i]], ...)
   10.       └─purrr::map(...)
   11.         └─isotracer (local) .f(.x[[i]], ...)
   12.           ├─stats::quantile(x$size, probs = c((1 - probs)/2, 1 - (1 - probs)/2))
   13.           └─stats:::quantile.default(...)
  ── Failure ('test-integration.R:207'): Model with three compartments work ──────
  `plot(p)` threw an error.
  Message: object 'p' not found
  Class:   simpleError/error/condition
  Backtrace:
      ▆
   1. ├─testthat::expect_error(plot(p), NA) at test-integration.R:207:12
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─base::plot(p)
  
  [ FAIL 2 | WARN 17 | SKIP 0 | PASS 285 ]
  Error: Test failures
  Execution halted