- 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 ‘rempsyc/DESCRIPTION’ ... OK
- this is package ‘rempsyc’ version ‘0.1.9’
- 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 ‘rempsyc’ can be installed ... OK
See the install log 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 ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking whether startup messages can be suppressed ... [1s/1s] 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/16s] OK
- checking Rd files ... [1s/1s] 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 ... [2s/3s] ERROR
Running examples in ‘rempsyc-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: cormatrix_excel
> ### Title: Easy export of correlation matrix to Excel
> ### Aliases: cormatrix_excel
> ### Keywords: Excel correlation matrix
>
> ### ** Examples
>
> ## Don't show:
> if (requireNamespace("correlation", quietly = TRUE) && 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
+ cormatrix_excel(mtcars, select = c("mpg", "cyl", "disp", "hp", "carb"), filename = "cormatrix1")
+ cormatrix_excel(iris, p_adjust = "none", filename = "cormatrix2")
+ cormatrix_excel(airquality, method = "spearman", filename = "cormatrix3")
+ ## Don't show:
+ setwd(.old_wd)
+ ## End(Don't show)
+ ## Don't show:
+ }) # examplesIf
> .old_wd <- setwd(tempdir())
> cormatrix_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: none
Error: x must be class wbColour
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [18s/22s] ERROR
Running ‘testthat.R’ [18s/22s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(rempsyc)
Suggested APA citation: Thériault, R. (2023). rempsyc: Convenience functions for psychology.
Journal of Open Source Software, 8(87), 5466. https://doi.org/10.21105/joss.05466
>
> test_check("rempsyc")
[ FAIL 1 | WARN 0 | SKIP 19 | PASS 46 ]
══ Skipped tests (19) ══════════════════════════════════════════════════════════
• On CRAN (19): 'test-best_duplicate.R:8:3', 'test-extract_duplicates.R:8:3',
'test-find_mad.R:2:3', 'test-format_value.R:2:3',
'test-nice_assumptions.R:9:3', 'test-nice_contrasts.R:7:3',
'test-nice_lm.R:5:3', 'test-nice_lm_contrasts.R:12:3',
'test-nice_lm_slopes.R:5:3', 'test-nice_mod.R:4:3', 'test-nice_na.R:2:3',
'test-nice_randomize.R:5:3', 'test-nice_reverse.R:3:3',
'test-nice_slopes.R:4:3', 'test-nice_t_test.R:5:3', 'test-nice_table.R:13:3',
'test-nice_var.R:2:3', 'test-scale_mad.R:2:3', 'test-winsorize_mad.R:2:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-cormatrix_excel.R:5:3'): cormatrix_excel ───────────────────────
Error: x must be class wbColour
Backtrace:
▆
1. └─testthat::expect_snapshot(...) at test-cormatrix_excel.R:5:3
2. └─rlang::cnd_signal(state$error)
[ FAIL 1 | WARN 0 | SKIP 19 | PASS 46 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [146s/200s] OK
- checking PDF version of manual ... [6s/9s] OK
- checking HTML version of manual ... [2s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs