* using log directory ‘/data/gannet/ripley/R/packages/tests-devel/correlation.Rcheck’ * using R Under development (unstable) (2025-02-15 r87726) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) * running under: Fedora Linux 40 (Workstation Edition) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘correlation/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘correlation’ version ‘0.8.6’ * 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 ‘correlation’ can be installed ... [9s/21s] OK See 'https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-gcc/correlation-00install.html' for details. * 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... 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 ... [19s/48s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 ... [10s/24s] ERROR Running examples in ‘correlation-Ex.R’ failed The error most likely occurred in: > ### Name: cormatrix_to_excel > ### Title: Easy export of correlation matrix to Excel > ### Aliases: cormatrix_to_excel > ### Keywords: Excel correlation matrix > > ### ** Examples > > ## Don't show: > if (requireNamespace("openxlsx2", quietly = TRUE)) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + ## Don't show: + .old_wd <- setwd(tempdir()) + ## End(Don't show) + # Basic example + suppressWarnings(cormatrix_to_excel(mtcars, + select = c("mpg", "cyl", "disp", "hp", "carb"), filename = "cormatrix1" + )) + suppressWarnings(cormatrix_to_excel(iris, + p_adjust = "none", + filename = "cormatrix2" + )) + suppressWarnings(cormatrix_to_excel(airquality, + method = "spearman", + filename = "cormatrix3" + )) + ## Don't show: + setwd(.old_wd) + ## End(Don't show) + ## Don't show: + }) # examplesIf > .old_wd <- setwd(tempdir()) > suppressWarnings(cormatrix_to_excel(mtcars, select = c("mpg", "cyl", "disp", + "hp", "carb"), filename = "cormatrix1")) # Correlation Matrix (pearson-method) Parameter | mpg | cyl | disp | hp | carb --------------------------------------------------------------- mpg | | -0.85*** | -0.85*** | -0.78*** | -0.55** cyl | -0.85*** | | 0.90*** | 0.83*** | 0.53** disp | -0.85*** | 0.90*** | | 0.79*** | 0.39* hp | -0.78*** | 0.83*** | 0.79*** | | 0.75*** carb | -0.55** | 0.53** | 0.39* | 0.75*** | p-value adjustment method: Holm (1979) Error: x must be class wbColour Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [52s/123s] ERROR Running ‘testthat.R’ [51s/122s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(correlation) > > test_check("correlation") For i = 2 j = 1 A cell entry of 0 was replaced with correct = 0.5. Check your data! For i = 2 j = 1 A cell entry of 0 was replaced with correct = 0.5. Check your data! [ FAIL 2 | WARN 125 | SKIP 11 | PASS 124 ] â•â• Skipped tests (11) â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• • On CRAN (11): 'test-as.list.R:7:3', 'test-correlation.R:172:3', 'test-correlation.R:195:3', 'test-display_print_dataframe.R:2:3', 'test-display_print_dataframe.R:14:3', 'test-display_print_matrix.R:4:3', 'test-display_print_matrix.R:13:3', 'test-display_print_matrix.R:31:3', 'test-methods.R:9:3', 'test-renaming.R:9:3', 'test-selecting_variables.R:28:3' â•â• Failed tests â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• ── Error ('test-cormatrix_to_excel.R:3:3'): cormatrix_to_excel select ────────── Error: x must be class wbColour Backtrace: â–† 1. └─testthat::expect_snapshot(...) at test-cormatrix_to_excel.R:3:3 2. └─rlang::cnd_signal(state$error) ── Error ('test-cormatrix_to_excel.R:16:3'): cormatrix_to_excel p_adjust ─────── Error: x must be class wbColour Backtrace: â–† 1. └─testthat::expect_snapshot(...) at test-cormatrix_to_excel.R:16:3 2. └─rlang::cnd_signal(state$error) [ FAIL 2 | WARN 125 | SKIP 11 | PASS 124 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [143s/430s] OK * checking PDF version of manual ... [8s/23s] OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs