Running ‘testthat.R’ [11s/17s]
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(qtkit)
  > library(httptest)
  > library(chromote)
  > 
  > # Function to delete Crashpad directories
  > cleanup_crashpad <- function() {
  +   crashpad_dirs <- dir(tempdir(), full.names = TRUE, pattern = "Crashpad")
  +   if (length(crashpad_dirs) > 0) {
  +     unlink(crashpad_dirs, recursive = TRUE)
  +   }
  + }
  > 
  > testthat::setup(cleanup_crashpad)
  > testthat::teardown(cleanup_crashpad)
  > 
  > # Function to check if Chromium is
  > # available and can be initialized
  > is_chromium_available <- function() {
  +   tryCatch({
  +     chromote::Chromote$new()
  +     TRUE
  +   }, error = function(e) {
  +     FALSE
  +   })
  + }
  > 
  > # Set the timeout for chromote (Windows only issue)
  > # https://github.com/rstudio/chromote/issues/114#issuecomment-1675406196
  > options(chromote.timeout = 60)
  > 
  > test_check("qtkit")
  Are you aware of the permissions to use this data?
  Are you aware of the permissions to use this data?
  Please review the documentation and try again.
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  Variable name: x
  Q1: 2.25 Q3: 4.75 IQR: 2.5
  Upper fence: 8.5 Lower fence: -1.5
  Number of outliers: 1
  Variable name: x
  Q1: 2 Q3: 4 IQR: 2
  Upper fence: 7 Lower fence: -1
  Number of outliers: 0
  Creating target data directory 
  
  Downloading data... 
  
  trying URL 'https://raw.githubusercontent.com/qtalr/qtkit/main/inst/extdata/test_data.zip'
  Content type 'application/zip' length 1966 bytes
  ==================================================
  downloaded 1966 bytes
  
  Data downloaded! 
  
  Data already exists 
  
  Creating target data directory 
  
  Downloading data... 
  
  trying URL 'https://raw.githubusercontent.com/qtalr/qtkit/main/inst/extdata/test_data.zip'
  Content type 'application/zip' length 1966 bytes
  ==================================================
  downloaded 1966 bytes
  
  Data downloaded! 
  
  Saving 7 x 7 in image
  Saving 7 x 7 in image
  Saving 7 x 7 in image
  Saving 7 x 7 in image
  Saving 7 x 7 in image
  Saving 7 x 7 in image
  Directory created: /var/folders/2b/t0kwbtmn3p7brv2mvx39c9cr0000gn/T//Rtmp42A6G5/new_dir
  Saving 7 x 7 in image
  Saving 7 x 7 in image
  Saving 7 x 7 in image
  
  Attaching package: 'kableExtra'
  
  The following object is masked from 'package:dplyr':
  
      group_rows
  
  file:////private/var/folders/2b/t0kwbtmn3p7brv2mvx39c9cr0000gn/T/Rtmp42A6G5/test_kable1228b45d7b027.html screenshot completed
  Note that HTML color may not be displayed on PDF properly.
  sh: +RTS: command not found
  Directory created: /var/folders/2b/t0kwbtmn3p7brv2mvx39c9cr0000gn/T//Rtmp42A6G5/non_existent_dir
  [ FAIL 1 | WARN 1 | SKIP 1 | PASS 111 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-get_gutenberg_data.R:5:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-write_kbl.R:23:5'): write_kbl saves the kable correctly ────────
  Error: pandoc document conversion failed with error 127
  Backtrace:
      ▆
   1. ├─qtkit (local) with_chromium_available(...) at test-write_kbl.R:11:3
   2. │ └─base::force(code) at test-write_kbl.R:7:3
   3. └─qtkit::write_kbl(t, "test_kable", temp_dir, "html") at test-write_kbl.R:23:5
   4.   └─kableExtra::save_kable(kbl_obj, file, bs_theme, ...)
   5.     └─kableExtra:::save_kable_html(...)
   6.       └─kableExtra:::self_contained(file, file)
   7.         └─rmarkdown::pandoc_convert(...)
   8.           └─rmarkdown:::stop2(...)
  
  [ FAIL 1 | WARN 1 | SKIP 1 | PASS 111 ]
  Error: Test failures
  Execution halted