Running ‘testthat.R’ [102s/135s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(cataScience)
  > 
  > test_check("cataScience")
  
  Attaching package: 'dplyr'
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  
  Attaching package: 'readr'
  
  The following objects are masked from 'package:testthat':
  
      edition_get, local_edition
  
  
  Attaching package: 'bslib'
  
  The following object is masked from 'package:utils':
  
      page
  
  
  Attaching package: 'DT'
  
  The following objects are masked from 'package:shiny':
  
      dataTableOutput, renderDataTable
  
  
  Attaching package: 'plotly'
  
  The following object is masked from 'package:ggplot2':
  
      last_plot
  
  The following object is masked from 'package:stats':
  
      filter
  
  The following object is masked from 'package:graphics':
  
      layout
  
  
  Attaching package: 'rio'
  
  The following object is masked from 'package:plotly':
  
      export
  
  
  Attaching package: 'naniar'
  
  The following object is masked from 'package:skimr':
  
      n_complete
  
  [ FAIL 2 | WARN 2 | SKIP 0 | PASS 380 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-app-builds.R:10:3'): app.R builds a shiny app object ───────────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
       ▆
    1. └─base::source("app.R", local = env) at test-app-builds.R:10:3
    2.   ├─base::withVisible(eval(ei, envir))
    3.   └─base::eval(ei, envir)
    4.     └─base::eval(ei, envir)
    5.       ├─base::source("R/app-ui.R", local = TRUE)
    6.       │ ├─base::withVisible(eval(ei, envir))
    7.       │ └─base::eval(ei, envir)
    8.       │   └─base::eval(ei, envir)
    9.       ├─bslib::navset_card_tab(...)
   10.       │ └─bslib:::navset_card(...)
   11.       │   └─bslib:::collect_nav_items(..., wrapper = wrapper)
   12.       │     └─rlang::list2(...)
   13.       ├─bslib::nav_panel("Background", md_page("background-import.md"))
   14.       │ └─bslib:::tabPanel_(title, ..., value = value, icon = icon)
   15.       │   └─htmltools::div(...)
   16.       │     └─rlang::dots_list(...)
   17.       └─md_page("background-import.md")
   18.         ├─htmltools::div(...)
   19.         │ └─rlang::dots_list(...)
   20.         └─htmltools::includeMarkdown(file.path("markdown", file))
   21.           └─markdown::mark(path, output = NULL)
   22.             └─xfun::write_utf8(c("---", yaml, "---", parts$body), file)
   23.               └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
   24.                 └─base::file(con, "w")
  ── Error ('test-app-builds.R:20:3'): the whole UI renders to HTML ──────────────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
       ▆
    1. └─base::source("app.R", local = env) at test-app-builds.R:20:3
    2.   ├─base::withVisible(eval(ei, envir))
    3.   └─base::eval(ei, envir)
    4.     └─base::eval(ei, envir)
    5.       ├─base::source("R/app-ui.R", local = TRUE)
    6.       │ ├─base::withVisible(eval(ei, envir))
    7.       │ └─base::eval(ei, envir)
    8.       │   └─base::eval(ei, envir)
    9.       ├─bslib::navset_card_tab(...)
   10.       │ └─bslib:::navset_card(...)
   11.       │   └─bslib:::collect_nav_items(..., wrapper = wrapper)
   12.       │     └─rlang::list2(...)
   13.       ├─bslib::nav_panel("Background", md_page("background-import.md"))
   14.       │ └─bslib:::tabPanel_(title, ..., value = value, icon = icon)
   15.       │   └─htmltools::div(...)
   16.       │     └─rlang::dots_list(...)
   17.       └─md_page("background-import.md")
   18.         ├─htmltools::div(...)
   19.         │ └─rlang::dots_list(...)
   20.         └─htmltools::includeMarkdown(file.path("markdown", file))
   21.           └─markdown::mark(path, output = NULL)
   22.             └─xfun::write_utf8(c("---", yaml, "---", parts$body), file)
   23.               └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
   24.                 └─base::file(con, "w")
  
  [ FAIL 2 | WARN 2 | SKIP 0 | PASS 380 ]
  Error:
  ! Test failures.
  Execution halted