Running ‘testthat.R’ [13s/15s]
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
  > 
  > # Need to think harder about how we are doing testing. In particular, there are
  > # a lot of functions here which test all the tutorials in a package. But how
  > # should we test them here? And how do we use those functions in other tutorial
  > # packages? This was all easier when everything was bundled together.
  > 
  > library(testthat)
  > library(tutorial.helpers)
  > 
  > test_check("tutorial.helpers")
  Testing tutorial: test-data/tutorial_examples/good-tutorial.Rmd 
  
  
  processing file: good-tutorial.Rmd
  
  
  processing file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/tutorial.helpers/child_documents/copy_button.Rmd
  
  
  processing file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/tutorial.helpers/child_documents/info_section.Rmd
  
  
  processing file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/tutorial.helpers/child_documents/download_answers.Rmd
  output file: good-tutorial.knit.md
  
  
  Output created: tutorial.html
  Testing tutorial: test-data/tutorial_examples/good-tutorial.Rmd 
  
  
  processing file: good-tutorial.Rmd
  
  
  processing file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/tutorial.helpers/child_documents/copy_button.Rmd
  
  
  processing file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/tutorial.helpers/child_documents/info_section.Rmd
  
  
  processing file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/tutorial.helpers/child_documents/download_answers.Rmd
  output file: good-tutorial.knit.md
  
  
  Output created: tutorial.html
  Testing tutorial: test-data/tutorial_examples/no-info-tutorial.Rmd 
  
  
  processing file: no-info-tutorial.Rmd
  
  
  processing file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/tutorial.helpers/child_documents/copy_button.Rmd
  
  
  processing file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/tutorial.helpers/child_documents/download_answers.Rmd
  output file: no-info-tutorial.knit.md
  
  
  Output created: tutorial.html
  Testing tutorial: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/tutorial.helpers/tutorials/getting-started/tutorial.Rmd 
  
  
  processing file: tutorial.Rmd
  
  
  processing file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/tutorial.helpers/child_documents/copy_button.Rmd
  
  
  processing file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/tutorial.helpers/child_documents/info_section.Rmd
  
  
  processing file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/tutorial.helpers/child_documents/download_answers.Rmd
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 17 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (???): rendering /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/tutorial.helpers/tutorials/getting-started/tutorial.Rmd ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
       ▆
    1. ├─testthat::expect_output(...)
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(path, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. └─rmarkdown::render(i, output_file = "tutorial.html")
   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 1 | WARN 1 | SKIP 0 | PASS 17 ]
  Error: Test failures
  Execution halted