Running ‘testthat.R’ [8s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(dqcheckr)
  > 
  > test_check("dqcheckr")
  [ FAIL 4 | WARN 4 | SKIP 0 | PASS 146 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-integration.R:47:3'): run_dq_check() returns a list with status, report_path, snapshot_id ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─dqcheckr::run_dq_check("integ_ds", config_dir = cfg_dir, open_report = FALSE) at test-integration.R:47:3
   2.   └─dqcheckr:::render_report(...)
   3.     └─rmarkdown::render(...)
   4.       └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
   5.         └─xfun::write_utf8(res, output)
   6.           └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
   7.             └─base::file(con, "w")
  ── Error ('test-integration.R:55:3'): run_dq_check() writes an HTML report file to disk ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─dqcheckr::run_dq_check("integ_ds", config_dir = cfg_dir, open_report = FALSE) at test-integration.R:55:3
   2.   └─dqcheckr:::render_report(...)
   3.     └─rmarkdown::render(...)
   4.       └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
   5.         └─xfun::write_utf8(res, output)
   6.           └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
   7.             └─base::file(con, "w")
  ── Error ('test-integration.R:62:3'): run_dq_check() writes a snapshot to the SQLite database ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─dqcheckr::run_dq_check("integ_ds", config_dir = cfg_dir, open_report = FALSE) at test-integration.R:62:3
   2.   └─dqcheckr:::render_report(...)
   3.     └─rmarkdown::render(...)
   4.       └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
   5.         └─xfun::write_utf8(res, output)
   6.           └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
   7.             └─base::file(con, "w")
  ── Error ('test-integration.R:69:3'): run_dq_check() returns PASS status for the clean fixture pair ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─dqcheckr::run_dq_check("integ_ds", config_dir = cfg_dir, open_report = FALSE) at test-integration.R:69:3
   2.   └─dqcheckr:::render_report(...)
   3.     └─rmarkdown::render(...)
   4.       └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
   5.         └─xfun::write_utf8(res, output)
   6.           └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
   7.             └─base::file(con, "w")
  
  [ FAIL 4 | WARN 4 | SKIP 0 | PASS 146 ]
  Error:
  ! Test failures.
  Execution halted