* using log directory ‘/home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/correlation.Rcheck’ * using R version 4.4.2 (2024-10-31) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc-14 (Debian 14.2.0-16) 14.2.0 GNU Fortran (Debian 14.2.0-16) 14.2.0 * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * 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 ... OK See 'https://www.r-project.org/nosvn/R.check/r-release-linux-x86_64/correlation-00install.html' for details. * checking package directory ... OK * checking for future file timestamps ... 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 ... [0s/0s] OK * checking whether the package can be loaded with stated dependencies ... [0s/0s] OK * checking whether the package can be unloaded cleanly ... [0s/0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK * checking whether the namespace can be unloaded cleanly ... [0s/1s] OK * checking loading without being on the library search path ... [0s/0s] 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 ... [12s/15s] OK * checking Rd files ... [0s/0s] 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 ... [4s/6s] ERROR Running examples in ‘correlation-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### 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 ... [29s/37s] ERROR Running ‘testthat.R’ [28s/37s] 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 1 | 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 1 | 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 ... [73s/100s] OK * checking PDF version of manual ... [5s/7s] OK * checking HTML version of manual ... [1s/2s] OK * checking for non-standard things in the check directory ... OK * DONE Status: 2 ERRORs