Running ‘testthat.R’ [246s/203s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ggPMX)
  > 
  > test_check("ggPMX")
  No data eta provided for plot eta_hist 
  No data eta provided for plot eta_box 
  No data eta provided for plot eta_matrix 
  No data eta provided for plot eta_cats 
  No data eta provided for plot eta_conts 
  No data eta provided for plot eta_qq 
  No data eta provided for plot eta_hist 
  No data eta provided for plot eta_box 
  No data eta provided for plot eta_matrix 
  No data eta provided for plot eta_cats 
  No data eta provided for plot eta_conts 
  No data eta provided for plot eta_qq 
  use  predictions1.txt  as  model predictions file .
  use  finegrid1.txt  as  finegrid file .
  [ FAIL 1 | WARN 11 | SKIP 8 | PASS 327 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (6)
  • TRUE is TRUE (1)
  • empty test (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-nlmixr.R:34'): nlmixr test ───────────────────────────────────
  `pmx_nlmixr(fit)` threw an error.
  Message: replacement has 20 rows, data has 12
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(pmx_nlmixr(fit), NA) at test-nlmixr.R:34:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─ggPMX::pmx_nlmixr(fit)
    7.   ├─data.table::as.data.table(fit$dataMergeInner)
    8.   ├─fit$dataMergeInner
    9.   └─nlmixr2est:::`$.nlmixr2FitData`(fit, "dataMergeInner")
   10.     ├─nlmixr2est::nmObjGetData(.lst)
   11.     └─nlmixr2est:::nmObjGetData.dataMergeInner(.lst)
   12.       └─nlmixr2est:::.dataMergeStub(.obj)
   13.         ├─base::`$<-`(`*tmp*`, "nlmixrLlikObs", value = `<dbl>`)
   14.         └─base::`$<-.data.frame`(`*tmp*`, "nlmixrLlikObs", value = `<dbl>`)
  
  [ FAIL 1 | WARN 11 | SKIP 8 | PASS 327 ]
  Error: Test failures
  Execution halted