Package check result: OK Changes to worse in reverse depends: Package: correlation Check: examples New result: 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 Package: correlation Check: tests New result: ERROR Running ‘testthat.R’ [15s/15s] 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 Package: rempsyc Check: examples New result: 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 Package: rempsyc Check: tests New result: ERROR Running ‘testthat.R’ [10s/10s] 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