Running ‘testthat.R’ [3s/3s]
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(tower)
  > 
  > test_check("tower")
  [ FAIL 32 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-http_helpers.R:3:3'): can add an arbitraty route ───────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-http_helpers.R:3:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-http_helpers.R:37:3'): can add a get route ─────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-http_helpers.R:37:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-http_helpers.R:71:3'): can add a post route ────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-http_helpers.R:71:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-http_helpers.R:105:3'): can add a put route ────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-http_helpers.R:105:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-http_helpers.R:139:3'): can add a delete route ─────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-http_helpers.R:139:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-http_helpers.R:173:3'): can add a patch route ──────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-http_helpers.R:173:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-http_helpers.R:215:3'): can extract req body as a json ─────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-http_helpers.R:215:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-http_helpers.R:250:3'): can extract req body as a json on multiple layers ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-http_helpers.R:250:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-http_helpers.R:290:3'): can extract req body form ──────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-http_helpers.R:290:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-http_helpers.R:325:3'): can extract req body form on many layers ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-http_helpers.R:325:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-http_helpers.R:364:3'): can extract req query ──────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-http_helpers.R:364:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-http_helpers.R:399:3'): can extract req http cookies ───────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-http_helpers.R:399:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-response-builder.R:2:3'): can build an empty response ──────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. ├─tower::build_response(tower::response_builder()) at test-response-builder.R:2:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-response-builder.R:10:3'): can build a response with a status ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. ├─tower::build_response(...) at test-response-builder.R:10:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-response-builder.R:19:3'): can build a response with a content type ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. ├─tower::build_response(...) at test-response-builder.R:19:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-response-builder.R:28:3'): can build a response with a body ────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. ├─tower::build_response(...) at test-response-builder.R:28:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-response-builder.R:37:3'): can build a response with a body and content type ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. ├─tower::build_response(...) at test-response-builder.R:37:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-response-builder.R:47:3'): shiny::tags get converted to html ───
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. ├─tower::build_response(...) at test-response-builder.R:47:3
   2. │ └─base::ifelse(is.null(res$content_type), "text/plain", res$content_type)
   3. ├─tower::add_body(...)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-response-builder.R:57:3'): can build a response with a body as JSON ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. ├─tower::build_response(...) at test-response-builder.R:57:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-response-builder.R:66:3'): can build a response with a body as JSON and content type ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. ├─tower::build_response(...) at test-response-builder.R:66:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-response-builder.R:76:3'): can build a response with a raw body ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. ├─tower::build_response(...) at test-response-builder.R:76:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-response-builder.R:85:3'): can build a response with a raw body and content type ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. ├─tower::build_response(...) at test-response-builder.R:85:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-response-builder.R:95:3'): can build a response with cookies ───
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. ├─tower::build_response(...) at test-response-builder.R:95:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-response-builder.R:105:3'): can build a response with many cookies ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. ├─tower::build_response(...) at test-response-builder.R:105:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-response-builder.R:119:3'): can build a response with a cookie and a body ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. ├─tower::build_response(...) at test-response-builder.R:119:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-response-builder.R:130:3'): can add headers to a response ──────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. ├─tower::build_response(...) at test-response-builder.R:130:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-test_shiny_middleware.R:2:3'): can build tower with no layers ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-test_shiny_middleware.R:2:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-test_shiny_middleware.R:21:3'): http middleware can short-circuit ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-test_shiny_middleware.R:21:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-test_shiny_middleware.R:52:3'): http middleware can be forwarded ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-test_shiny_middleware.R:52:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-test_shiny_middleware.R:95:3'): http middleware can be forwarded with helpers ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-test_shiny_middleware.R:95:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-test_shiny_middleware.R:141:3'): server middleware can run ─────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-test_shiny_middleware.R:141:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-test_shiny_middleware.R:167:3'): expect printable tower ────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-test_shiny_middleware.R:167:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 32 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted