Running ‘testthat.R’ [17s/21s]
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/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(blockr.core)
  > 
  > test_check("blockr.core")
  [ FAIL 1 | WARN 0 | SKIP 13 | PASS 380 ]
  
  ══ Skipped tests (13) ══════════════════════════════════════════════════════════
  • On CRAN (13): 'test-block-class.R:146:3', 'test-block-class.R:176:3',
    'test-blocks-class.R:36:3', 'test-board-class.R:23:3',
    'test-board-plugins.R:10:3', 'test-link-class.R:6:3',
    'test-links-class.R:21:3', 'test-serve.R:3:3', 'test-serve.R:36:3',
    'test-serve.R:54:3', 'test-serve.R:129:3', 'test-stack-class.R:51:3',
    'test-stacks-class.R:67:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-plugin-stacks.R:37:7'): add/rm stacks ──────────────────────────
  <vctrs_error_subscript_oob/vctrs_error_subscript/rlang_error/error/condition>
  Error in `x$id[i]`: Can't subset elements past the end.
  i Location 1 doesn't exist.
  i There are only 0 elements.
  Backtrace:
       ▆
    1. ├─shiny::testServer(...) at test-plugin-stacks.R:10:3
    2. │ ├─shiny:::withMockContext(...)
    3. │ │ ├─shiny::isolate(...)
    4. │ │ │ ├─shiny::..stacktraceoff..(...)
    5. │ │ │ └─ctx$run(...)
    6. │ │ │   ├─promises::with_promise_domain(...)
    7. │ │ │   │ └─domain$wrapSync(expr)
    8. │ │ │   ├─shiny::withReactiveDomain(...)
    9. │ │ │   │ └─promises::with_promise_domain(...)
   10. │ │ │   │   └─domain$wrapSync(expr)
   11. │ │ │   │     └─base::force(expr)
   12. │ │ │   ├─shiny::captureStackTraces(...)
   13. │ │ │   │ └─promises::with_promise_domain(...)
   14. │ │ │   │   └─domain$wrapSync(expr)
   15. │ │ │   │     └─base::withCallingHandlers(expr, error = doCaptureStack)
   16. │ │ │   └─env$runWith(self, func)
   17. │ │ │     └─shiny (local) contextFunc()
   18. │ │ │       └─shiny::..stacktraceon..(expr)
   19. │ │ ├─shiny::withReactiveDomain(...)
   20. │ │ │ └─promises::with_promise_domain(...)
   21. │ │ │   └─domain$wrapSync(expr)
   22. │ │ │     └─base::force(expr)
   23. │ │ └─withr::with_options(...)
   24. │ │   └─base::force(code)
   25. │ └─rlang::eval_tidy(quosure, mask, rlang::caller_env())
   26. ├─base::`[[<-`(`*tmp*`, 1, value = `<stack>`) at test-plugin-stacks.R:37:7
   27. ├─blockr.core:::`[[<-.stacks`(`*tmp*`, 1, value = `<stack>`) at test-plugin-stacks.R:37:7
   28. │ ├─blockr.core:::set_names(list(as_stack(value)), x$id[i])
   29. │ ├─x$id[i]
   30. │ └─blockr.core:::`[.stack`(x$id, i)
   31. │   ├─vctrs::vec_slice(as.character(x), vec_as_location(i, length(x)))
   32. │   └─vctrs::vec_as_location(i, length(x))
   33. └─vctrs (local) `<fn>`()
   34.   └─vctrs:::stop_subscript_oob(...)
   35.     └─vctrs:::stop_subscript(...)
   36.       └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 13 | PASS 380 ]
  Deleting unused snapshots:
  • serve/board-001.json
  • serve/board-002.json
  • serve/board-003.json
  • serve/board-004.json
  • serve/board-005.json
  • serve/merge-001.json
  • serve/merge-002.json
  • serve/merge-003.json
  • serve/merge-004.json
  • serve/merge-005.json
  • serve/merge-006.json
  • serve/rbind-001.json
  • serve/stack-001.json
  • serve/stack-002.json
  • serve/stack-003.json
  • serve/stack-004.json
  Error: Test failures
  Execution halted