Running ‘testthat.R’ [33s/52s]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(anabel)
  Thank you for using anabel (3.0.0), please cite anabel by using: citation(package = 'anabel').
  > test_check("anabel")
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 118 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-SCA.R:45:3'): run_sca ──────────────────────────────────────────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
       ▆
    1. ├─... %>% suppressMessages() at test-SCA.R:45:2
    2. ├─base::suppressMessages(.)
    3. │ └─base::withCallingHandlers(...)
    4. ├─testthat::expect_true(.)
    5. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    6. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    7. └─anabel:::run_sca(...)
    8.   └─rmarkdown::render(...)
    9.     └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
   10.       └─xfun::write_utf8(res, output)
   11.         └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
   12.           └─base::file(con, "w")
  ── Error ('test-SCK.R:67:3'): run_sck ──────────────────────────────────────────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
       ▆
    1. ├─... %>% suppressWarnings() at test-SCK.R:67:2
    2. ├─base::suppressWarnings(.)
    3. │ └─base::withCallingHandlers(...)
    4. ├─base::suppressMessages(.)
    5. │ └─base::withCallingHandlers(...)
    6. ├─testthat::expect_true(.)
    7. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    8. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    9. └─anabel:::run_sck(...)
   10.   └─rmarkdown::render(...)
   11.     └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
   12.       └─xfun::write_utf8(res, output)
   13.         └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
   14.           └─base::file(con, "w")
  
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 118 ]
  Error: Test failures
  Execution halted