Running ‘testthat.R’ [51s/27s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bslib)
  
  Attaching package: 'bslib'
  
  The following object is masked from 'package:utils':
  
      page
  
  > 
  > test_check("bslib")
  Starting 2 test processes
  [ FAIL 12 | WARN 0 | SKIP 31 | PASS 398 ]
  
  ══ Skipped tests (31) ══════════════════════════════════════════════════════════
  • On CRAN (30): 'test-zzzz-bs-sass.R:4:3', 'test-zzzz-bs-sass.R:26:3',
    'test-zzzz-bs-sass.R:51:3', 'test-zzz-precompile.R:18:3',
    'test-rmd-skeletons.R:18:3', 'test-bs-theme-preset-builtin.R:5:5',
    'test-bs-theme-preset.R:7:5', 'test-bs-theme-preset.R:14:5',
    'test-bs-theme-preset.R:34:5', 'test-card.R:6:3', 'test-card.R:44:3',
    'test-fill.R:12:3', 'test-fill.R:29:3', 'test-fill.R:46:3',
    'test-fill.R:66:3', 'test-fill.R:81:3', 'test-fill.R:114:3',
    'test-fill.R:126:3', 'test-fill.R:146:3', 'test-fill.R:167:3',
    'test-fill.R:195:3', 'test-fill.R:208:3', 'test-fill.R:232:3',
    'test-layout.R:45:3', 'test-layout.R:91:3', 'test-layout.R:109:3',
    'test-layout.R:123:3', 'test-layout.R:129:3', 'test-value-box.R:56:3',
    'test-value-box.R:106:3'
  • shiny cannot be loaded (1): 'test-page.R:8:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-page.R:38:3'): page_sidebar() ──────────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. ├─bslib:::with_private_seed() at test-page.R:38:3
   2. └─base::loadNamespace(x) at tests/testthat/helper-seed.R:3:3
   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-page.R:87:5'): save_html() works on components and pages with a custom theme ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
       ▆
    1. ├─withr::with_tempdir(...) at test-page.R:86:3
    2. │ └─withr::with_dir(tmp, code)
    3. │   └─base::force(code)
    4. ├─htmltools::save_html(card("A simple card"), "card.html") at test-page.R:87:5
    5. ├─bslib:::save_html.bslib_fragment(card("A simple card"), "card.html")
    6. │ └─attr(html, "bslib_page")(html)
    7. │   └─bslib:::as_page(...)
    8. └─base::loadNamespace(x)
    9.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.     └─base (local) withOneRestart(expr, restarts[[1L]])
   11.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test-page.R:108:3'): page_*() functions can handle trailing commas ──
  Expected `page("foo", )` to run without any errors.
  i Actually got a <packageNotFoundError> with text:
    there is no package called 'shiny'
  ── Failure ('test-page.R:111:3'): page_*() functions can handle trailing commas ──
  Expected `page_fluid("foo", )` to run without any errors.
  i Actually got a <packageNotFoundError> with text:
    there is no package called 'shiny'
  ── Failure ('test-page.R:114:3'): page_*() functions can handle trailing commas ──
  Expected `page_fixed("foo", )` to run without any errors.
  i Actually got a <packageNotFoundError> with text:
    there is no package called 'shiny'
  ── Failure ('test-page.R:117:3'): page_*() functions can handle trailing commas ──
  Expected `page_fillable("foo", )` to run without any errors.
  i Actually got a <packageNotFoundError> with text:
    there is no package called 'shiny'
  ── Failure ('test-page.R:120:3'): page_*() functions can handle trailing commas ──
  Expected `page_sidebar("foo", )` to run without any errors.
  i Actually got a <packageNotFoundError> with text:
    there is no package called 'shiny'
  ── Failure ('test-page.R:123:3'): page_*() functions can handle trailing commas ──
  Expected `page_navbar(nav_panel("foo", "bar"), )` to run without any errors.
  i Actually got a <packageNotFoundError> with text:
    there is no package called 'shiny'
  ── Error ('test-layout.R:6:3'): layout_columns() with col_widths ───────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'shiny'
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(layout_columns(col_widths = 6, !!!children)) at test-layout.R:6:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-sidebar.R:33:3'): sidebar() - assigns a random `id` if collapsible and `id` not provided ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(name)`: there is no package called 'shiny'
  Backtrace:
       ▆
    1. ├─htmltools::as.tags(sidebar(open = "open")) at test-sidebar.R:33:3
    2. └─bslib:::as.tags.bslib_sidebar(sidebar(open = "open"))
    3.   ├─base::paste0("bslib-sidebar-", p_randomInt(1000, 10000))
    4.   └─bslib:::p_randomInt(1000, 10000)
    5.     └─utils::getFromNamespace("p_randomInt", "shiny")
    6.       └─base::asNamespace(ns)
    7.         └─base::getNamespace(ns)
    8.           ├─.Internal(getRegisteredNamespace(name)) %||% ...
    9.           └─base::loadNamespace(name)
   10.             └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.               └─base (local) withOneRestart(expr, restarts[[1L]])
   12.                 └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-sidebar.R:74:5'): sidebar() - sets `aria-expanded` correctly on collapse toggle ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(name)`: there is no package called 'shiny'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-sidebar.R:77:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─htmltools::tagGetAttribute(...)
    5. │ └─htmltools:::throw_if_tag_function(tag)
    6. │   └─htmltools:::is_tag_function(tag)
    7. └─bslib (local) get_sidebar_collapse_tag(open = "open")
    8.   ├─htmltools::as.tags(sidebar(...)) at test-sidebar.R:74:5
    9.   └─bslib:::as.tags.bslib_sidebar(sidebar(...))
   10.     ├─base::paste0("bslib-sidebar-", p_randomInt(1000, 10000))
   11.     └─bslib:::p_randomInt(1000, 10000)
   12.       └─utils::getFromNamespace("p_randomInt", "shiny")
   13.         └─base::asNamespace(ns)
   14.           └─base::getNamespace(ns)
   15.             ├─.Internal(getRegisteredNamespace(name)) %||% ...
   16.             └─base::loadNamespace(name)
   17.               └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   18.                 └─base (local) withOneRestart(expr, restarts[[1L]])
   19.                   └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-sidebar.R:116:3'): sidebar() - warns if `max_height_mobile` used with `open != 'always' ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(name)`: there is no package called 'shiny'
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(as.tags(sidebar(open = "open", max_height_mobile = "100px"))) at test-sidebar.R:116: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. ├─htmltools::as.tags(sidebar(open = "open", max_height_mobile = "100px"))
    8. └─bslib:::as.tags.bslib_sidebar(sidebar(open = "open", max_height_mobile = "100px"))
    9.   ├─base::paste0("bslib-sidebar-", p_randomInt(1000, 10000))
   10.   └─bslib:::p_randomInt(1000, 10000)
   11.     └─utils::getFromNamespace("p_randomInt", "shiny")
   12.       └─base::asNamespace(ns)
   13.         └─base::getNamespace(ns)
   14.           ├─.Internal(getRegisteredNamespace(name)) %||% ...
   15.           └─base::loadNamespace(name)
   16.             └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   17.               └─base (local) withOneRestart(expr, restarts[[1L]])
   18.                 └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 12 | WARN 0 | SKIP 31 | PASS 398 ]
  Deleting unused snapshots:
  • page/card.html
  • page/modern-page.html
  • zzzz-bs-sass/bs4-imports
  • zzzz-bs-sass/bs5-imports
  Error: Test failures
  Execution halted