- using R version 4.3.3 (2024-02-29)
- using platform: x86_64-apple-darwin20 (64-bit)
- R was compiled by
Apple clang version 14.0.0 (clang-1400.0.29.202)
GNU Fortran (GCC) 12.2.0
- running under: macOS Ventura 13.3.1
- using session charset: UTF-8
- checking for file ‘qtkit/DESCRIPTION’ ... OK
- this is package ‘qtkit’ version ‘1.1.1’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘qtkit’ can be installed ... [6s/9s] OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [2s/3s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the package can be unloaded cleanly ... [2s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/2s] OK
- checking loading without being on the library search path ... [2s/3s] OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [5s/7s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [2s/3s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [8s/13s] ERROR
Running ‘testthat.R’ [8s/13s]
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//RtmpyBLu8W/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/RtmpyBLu8W/test_kablec23d7f556d8d.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//RtmpyBLu8W/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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in ‘inst/doc’ ... OK
- checking re-building of vignette outputs ... [16s/23s] OK
- checking PDF version of manual ... [6s/9s] OK
- DONE
Status: 1 ERROR
- using check arguments '--no-clean-on-error '