Running ‘testthat.R’ [63s/83s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > pkg_name <- "teal.slice"
  > library(pkg_name, character.only = TRUE)
  > testthat::test_check(pkg_name)
  Saving _problems/test-FilterStates-390.R
  Saving _problems/test-FilterStates-431.R
  Error: Can't access reactive `reactiveValues4952`; its module session has been destroyed
  Error: Can't access reactive `reactiveValues4952`; its module session has been destroyed
  Error: Can't access reactive `reactiveValues4952`; its module session has been destroyed
  Error: Can't access reactive `reactiveValues3716`; its module session has been destroyed
  Error: Can't access reactive `reactiveValues3716`; its module session has been destroyed
  Error: Can't access reactive `reactiveValues3716`; its module session has been destroyed
  {
    "dataname" : "data",
    "varname"  : "var",
    "id"       : "data var",
    "fixed"    : false,
    "anchored" : false,
    "multiple" : true
  }{
    "slices": [
      {
        "dataname" : "data",
        "varname"  : "var1",
        "id"       : "data var1",
        "fixed"    : false,
        "anchored" : false,
        "multiple" : true
      },
      {
        "dataname" : "data",
        "varname"  : "var2",
        "id"       : "data var2",
        "fixed"    : false,
        "anchored" : false,
        "multiple" : true
      }
    ],
    "attributes": {
      "allow_add"  : true
    }
  } 
  [ FAIL 2 | WARN 0 | SKIP 15 | PASS 953 ]
  
  ══ Skipped tests (15) ══════════════════════════════════════════════════════════
  • testing depth 3 is below current testing specification 5 (15):
    'test-shinytest2_DataframeFilteredDataset.R:71:5',
    'test-shinytest2_DataframeFilteredDataset.R:78:5',
    'test-shinytest2_DataframeFilteredDataset.R:88:5',
    'test-shinytest2_DataframeFilteredDataset.R:95:5',
    'test-shinytest2_DataframeFilteredDataset.R:105:5',
    'test-shinytest2_DataframeFilteredDataset.R:116:5',
    'test-shinytest2_DataframeFilteredDataset.R:127:3',
    'test-shinytest2_DataframeFilteredDataset.R:136:3',
    'test-shinytest2_DataframeFilteredDataset.R:155:3',
    'test-shinytest2_DataframeFilteredDataset.R:170:3',
    'test-shinytest2_DataframeFilteredDataset.R:184:3',
    'test-shinytest2_DataframeFilteredDataset.R:200:3',
    'test-shinytest2_DataframeFilteredDataset.R:216:3',
    'test-shinytest2_DataframeFilteredDataset.R:230:3',
    'test-shinytest2_MAEFilteredDataset.R:66:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-FilterStates.R:379:3'): Selecting a new variable initializes a new filter state with default states ──
  <shiny.destroyed.error/error/condition>
  Error: Can't access reactive `reactiveValues2719`; its module session has been destroyed
  Backtrace:
       ▆
    1. ├─teal.slice:::expect_identical_slices(...) at test-FilterStates.R:379:3
    2. │ ├─shiny::isolate(...)
    3. │ │ ├─shiny::..stacktraceoff..(...)
    4. │ │ └─ctx$run(...)
    5. │ │   ├─promises::with_promise_domain(...)
    6. │ │   │ └─domain$wrapSync(expr)
    7. │ │   ├─shiny::withReactiveDomain(...)
    8. │ │   │ └─promises::with_promise_domain(...)
    9. │ │   │   └─domain$wrapSync(expr)
   10. │ │   │     └─base::force(expr)
   11. │ │   ├─shiny:::with_otel_span_context(...)
   12. │ │   │ └─base::force(expr)
   13. │ │   ├─shiny::captureStackTraces(...)
   14. │ │   │ └─promises::with_promise_domain(...)
   15. │ │   │   └─domain$wrapSync(expr)
   16. │ │   │     └─base::withCallingHandlers(expr, error = doCaptureStack)
   17. │ │   └─env$runWith(self, func)
   18. │ │     └─shiny (local) contextFunc()
   19. │ │       └─shiny::..stacktraceon..(expr)
   20. │ └─base::mapply(...)
   21. ├─filter_states$get_filter_state()
   22. │ ├─base::do.call(teal_slices, c(slices, list(count_type = private$count_type)))
   23. │ └─teal.slice (local) `<fn>`(`<tl_slc_v>`, count_type = "none")
   24. │   ├─shiny::isolate(vapply(slices, `[[`, character(1L), "id"))
   25. │   │ ├─shiny::..stacktraceoff..(...)
   26. │   │ └─ctx$run(...)
   27. │   │   ├─promises::with_promise_domain(...)
   28. │   │   │ └─domain$wrapSync(expr)
   29. │   │   ├─shiny::withReactiveDomain(...)
   30. │   │   │ └─promises::with_promise_domain(...)
   31. │   │   │   └─domain$wrapSync(expr)
   32. │   │   │     └─base::force(expr)
   33. │   │   ├─shiny:::with_otel_span_context(...)
   34. │   │   │ └─base::force(expr)
   35. │   │   ├─shiny::captureStackTraces(...)
   36. │   │   │ └─promises::with_promise_domain(...)
   37. │   │   │   └─domain$wrapSync(expr)
   38. │   │   │     └─base::withCallingHandlers(expr, error = doCaptureStack)
   39. │   │   └─env$runWith(self, func)
   40. │   │     └─shiny (local) contextFunc()
   41. │   │       └─shiny::..stacktraceon..(expr)
   42. │   └─base::vapply(slices, `[[`, character(1L), "id")
   43. │     ├─base (local) FUN(X[[i]], ...)
   44. │     └─shiny:::`[[.reactivevalues`(X[[i]], ...)
   45. │       └─.subset2(x, "impl")$get(.subset2(x, "ns")(name))
   46. │         └─base::stop(destroyedReactiveError(.label))
   47. ├─shiny (local) `<fn>`(`<shny.ds.>`)
   48. │ └─base::stop(e)
   49. └─shiny (local) `<fn>`(`<shny.ds.>`)
  ── Error ('test-FilterStates.R:413:3'): Adding 'var_to_add' adds another filter state ──
  <shiny.destroyed.error/error/condition>
  Error: Can't access reactive `reactiveValues9457`; its module session has been destroyed
  Backtrace:
       ▆
    1. ├─teal.slice:::expect_identical_slices(...) at test-FilterStates.R:413:3
    2. │ ├─shiny::isolate(...)
    3. │ │ ├─shiny::..stacktraceoff..(...)
    4. │ │ └─ctx$run(...)
    5. │ │   ├─promises::with_promise_domain(...)
    6. │ │   │ └─domain$wrapSync(expr)
    7. │ │   ├─shiny::withReactiveDomain(...)
    8. │ │   │ └─promises::with_promise_domain(...)
    9. │ │   │   └─domain$wrapSync(expr)
   10. │ │   │     └─base::force(expr)
   11. │ │   ├─shiny:::with_otel_span_context(...)
   12. │ │   │ └─base::force(expr)
   13. │ │   ├─shiny::captureStackTraces(...)
   14. │ │   │ └─promises::with_promise_domain(...)
   15. │ │   │   └─domain$wrapSync(expr)
   16. │ │   │     └─base::withCallingHandlers(expr, error = doCaptureStack)
   17. │ │   └─env$runWith(self, func)
   18. │ │     └─shiny (local) contextFunc()
   19. │ │       └─shiny::..stacktraceon..(expr)
   20. │ └─base::mapply(...)
   21. ├─shiny::isolate(filter_states$get_filter_state())
   22. │ ├─shiny::..stacktraceoff..(...)
   23. │ └─ctx$run(...)
   24. │   ├─promises::with_promise_domain(...)
   25. │   │ └─domain$wrapSync(expr)
   26. │   ├─shiny::withReactiveDomain(...)
   27. │   │ └─promises::with_promise_domain(...)
   28. │   │   └─domain$wrapSync(expr)
   29. │   │     └─base::force(expr)
   30. │   ├─shiny:::with_otel_span_context(...)
   31. │   │ └─base::force(expr)
   32. │   ├─shiny::captureStackTraces(...)
   33. │   │ └─promises::with_promise_domain(...)
   34. │   │   └─domain$wrapSync(expr)
   35. │   │     └─base::withCallingHandlers(expr, error = doCaptureStack)
   36. │   └─env$runWith(self, func)
   37. │     └─shiny (local) contextFunc()
   38. │       └─shiny::..stacktraceon..(expr)
   39. ├─filter_states$get_filter_state()
   40. │ ├─base::do.call(teal_slices, c(slices, list(count_type = private$count_type)))
   41. │ └─teal.slice (local) `<fn>`(`<tl_slc_v>`, `<tl_slc_v>`, `<tl_slc_v>`, count_type = "none")
   42. │   ├─shiny::isolate(vapply(slices, `[[`, character(1L), "id"))
   43. │   │ ├─shiny::..stacktraceoff..(...)
   44. │   │ └─ctx$run(...)
   45. │   │   ├─promises::with_promise_domain(...)
   46. │   │   │ └─domain$wrapSync(expr)
   47. │   │   ├─shiny::withReactiveDomain(...)
   48. │   │   │ └─promises::with_promise_domain(...)
   49. │   │   │   └─domain$wrapSync(expr)
   50. │   │   │     └─base::force(expr)
   51. │   │   ├─shiny:::with_otel_span_context(...)
   52. │   │   │ └─base::force(expr)
   53. │   │   ├─shiny::captureStackTraces(...)
   54. │   │   │ └─promises::with_promise_domain(...)
   55. │   │   │   └─domain$wrapSync(expr)
   56. │   │   │     └─base::withCallingHandlers(expr, error = doCaptureStack)
   57. │   │   └─env$runWith(self, func)
   58. │   │     └─shiny (local) contextFunc()
   59. │   │       └─shiny::..stacktraceon..(expr)
   60. │   └─base::vapply(slices, `[[`, character(1L), "id")
   61. │     ├─base (local) FUN(X[[i]], ...)
   62. │     └─shiny:::`[[.reactivevalues`(X[[i]], ...)
   63. │       └─.subset2(x, "impl")$get(.subset2(x, "ns")(name))
   64. │         └─base::stop(destroyedReactiveError(.label))
   65. ├─shiny (local) `<fn>`(`<shny.ds.>`)
   66. │ └─base::stop(e)
   67. ├─shiny (local) `<fn>`(`<shny.ds.>`)
   68. │ └─base::stop(e)
   69. └─shiny (local) `<fn>`(`<shny.ds.>`)
  
  [ FAIL 2 | WARN 0 | SKIP 15 | PASS 953 ]
  Error:
  ! Test failures.
  Execution halted