Running ‘testthat.R’ [6s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(nlmixr2rpt)
  > 
  > test_check("nlmixr2rpt")
  Error : package "qs" needed for this function to work
  Saving _problems/test-rptnlmixr-41.R
  Error : package "qs" needed for this function to work
  Saving _problems/test-rptnlmixr-119.R
  Error : package "qs" needed for this function to work
  Error : package "qs" needed for this function to work
  Error : package "qs" needed for this function to work
  Error : package "qs" needed for this function to work
  Error : package "qs" needed for this function to work
  Saving _problems/test-rptnlmixr-154.R
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 6 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-rptnlmixr.R:31:3'): build_figures ──────────────────────────────
  Error in `seq_len(nrow(.origData))`: argument must be coercible to non-negative integer
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(...) at test-rptnlmixr.R:31:3
    2. │ └─base::withCallingHandlers(...)
    3. ├─base::suppressMessages(...)
    4. │ └─base::withCallingHandlers(...)
    5. └─nlmixr2rpt::build_figures(...)
    6.   ├─base::eval(parse(text = preamble_str))
    7.   │ └─base::eval(parse(text = preamble_str))
    8.   └─xpose.nlmixr2::xpose_data_nlmixr(fit)
    9.     ├─obj$dataMergeInner
   10.     └─nlmixr2est:::`$.nlmixr2FitData`(obj, "dataMergeInner")
   11.       ├─nlmixr2est::nmObjGetData(.lst)
   12.       └─nlmixr2est:::nmObjGetData.dataMergeInner(.lst)
   13.         └─nlmixr2est:::.dataMergeStub(.obj, preferFit = FALSE)
  ── Error ('test-rptnlmixr.R:98:3'): PowerPoint Workflow ────────────────────────
  Error in `seq_len(nrow(.origData))`: argument must be coercible to non-negative integer
  Backtrace:
       ▆
    1. ├─base::suppressMessages(...) at test-rptnlmixr.R:98:3
    2. │ └─base::withCallingHandlers(...)
    3. ├─base::suppressWarnings(...)
    4. │ └─base::withCallingHandlers(...)
    5. └─nlmixr2rpt::report_fit(...)
    6.   └─nlmixr2rpt::build_figures(...)
    7.     ├─base::eval(parse(text = preamble_str))
    8.     │ └─base::eval(parse(text = preamble_str))
    9.     └─xpose.nlmixr2::xpose_data_nlmixr(fit)
   10.       ├─obj$dataMergeInner
   11.       └─nlmixr2est:::`$.nlmixr2FitData`(obj, "dataMergeInner")
   12.         ├─nlmixr2est::nmObjGetData(.lst)
   13.         └─nlmixr2est:::nmObjGetData.dataMergeInner(.lst)
   14.           └─nlmixr2est:::.dataMergeStub(.obj, preferFit = FALSE)
  ── Error ('test-rptnlmixr.R:134:3'): Word Workflow ─────────────────────────────
  Error in `seq_len(nrow(.origData))`: argument must be coercible to non-negative integer
  Backtrace:
       ▆
    1. ├─base::suppressMessages(...) at test-rptnlmixr.R:134:3
    2. │ └─base::withCallingHandlers(...)
    3. ├─base::suppressWarnings(...)
    4. │ └─base::withCallingHandlers(...)
    5. └─nlmixr2rpt::report_fit(...)
    6.   └─nlmixr2rpt::build_figures(...)
    7.     ├─base::eval(parse(text = preamble_str))
    8.     │ └─base::eval(parse(text = preamble_str))
    9.     └─xpose.nlmixr2::xpose_data_nlmixr(fit)
   10.       ├─obj$dataMergeInner
   11.       └─nlmixr2est:::`$.nlmixr2FitData`(obj, "dataMergeInner")
   12.         ├─nlmixr2est::nmObjGetData(.lst)
   13.         └─nlmixr2est:::nmObjGetData.dataMergeInner(.lst)
   14.           └─nlmixr2est:::.dataMergeStub(.obj, preferFit = FALSE)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 6 ]
  Error:
  ! Test failures.
  Execution halted