Running ‘testthat.R’ [2s/5s]
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(DLSSM)
  > 
  > test_check("DLSSM")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 3 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-DLSSM.R:19:3'): Input errors ───────────────────────────────────
  Error in `dimnames(x) <- dn`: length of 'dimnames' [2] not equal to array extent
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-DLSSM.R:19:3
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─DLSSM::Batched(formula2, data2, time = "t", S = 10)
   8.   └─base::`colnames<-`(`*tmp*`, value = c(var_names, time))
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 3 ]
  Error: Test failures
  Execution halted