Running ‘testthat.R’ [2s/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(sae4health)
  sae4health loaded successfully.
  Run 'sae4health::run_app()' to launch the app.
  For comprehensive documentation, visit https://sae4health.stat.uw.edu/.
  > 
  > test_check("sae4health")
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 10 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-app-loading.R:2:3'): app ui ────────────────────────────────────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
       ▆
    1. └─sae4health:::app_ui() at test-app-loading.R:2:3
    2.   ├─htmltools::tagList(...)
    3.   │ └─rlang::dots_list(...)
    4.   ├─shinydashboard::dashboardPage(...)
    5.   │ └─shinydashboard:::tagAssert(body, type = "div", class = "content-wrapper")
    6.   ├─shinydashboard::dashboardBody(...)
    7.   │ ├─htmltools::div(...)
    8.   │ │ └─rlang::dots_list(...)
    9.   │ └─tags$section(class = "content", ...)
   10.   │   └─rlang::dots_list(...)
   11.   ├─shinydashboard::tabItems(...)
   12.   │ └─base::lapply(list(...), tagAssert, class = "tab-pane")
   13.   ├─shinydashboard::tabItem(tabName = "model_fit", mod_model_selection_ui("model_selection_1"))
   14.   │ └─htmltools::div(...)
   15.   │   └─rlang::dots_list(...)
   16.   └─sae4health:::mod_model_selection_ui("model_selection_1")
   17.     ├─shiny::fluidPage(...)
   18.     │ ├─shiny::bootstrapPage(...)
   19.     │ │ └─rlang::list2(...)
   20.     │ └─htmltools::div(class = "container-fluid", ...)
   21.     │   └─rlang::dots_list(...)
   22.     ├─shiny::navbarPage(...)
   23.     │ ├─shiny:::remove_first_class(...)
   24.     │ └─bslib::page_navbar(...)
   25.     │   └─bslib:::navs_bar_(...)
   26.     │     └─bslib:::navbarPage_(...)
   27.     │       └─bslib:::buildTabset(..., ulClass = ulClass, id = id, selected = selected)
   28.     │         ├─bslib:::dropNulls(list2(...))
   29.     │         └─rlang::list2(...)
   30.     ├─shiny::navbarMenu(...)
   31.     │ └─bslib::nav_menu(title, ..., value = menuName, icon = icon)
   32.     │   └─bslib:::navbarMenu_(...)
   33.     │     ├─base::structure(...)
   34.     │     └─rlang::list2(...)
   35.     ├─shiny::tabPanel(...)
   36.     │ └─bslib::nav(title, ..., value = value, icon = icon)
   37.     │   └─bslib (local) new(...)
   38.     │     └─bslib:::tabPanel_(title, ..., value = value, icon = icon)
   39.     │       └─htmltools::div(...)
   40.     │         └─rlang::dots_list(...)
   41.     ├─htmltools::div(...)
   42.     │ └─rlang::dots_list(...)
   43.     ├─shiny::withMathJax(...)
   44.     │ └─htmltools::tagList(...)
   45.     │   └─rlang::dots_list(...)
   46.     └─htmltools::includeMarkdown(...)
   47.       └─markdown::mark(path, output = NULL)
   48.         └─xfun::write_utf8(c("---", yaml, "---", parts$body), file)
   49.           └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
   50.             └─base::file(con, "w")
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 10 ]
  Error: Test failures
  Execution halted