* using log directory 'd:/Rcompile/CRANpkg/local/4.4/psycho.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * using option '--no-vignettes' * checking for file 'psycho/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'psycho' version '0.6.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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'psycho' can be installed ... OK * 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [2s] 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 ... [7s] OK * checking Rd files ... [1s] NOTE checkRd: (-1) dprime.Rd:37: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) dprime.Rd:38: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) dprime.Rd:39: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) dprime.Rd:40: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) dprime.Rd:41: Lost braces in \itemize; \value handles \item{}{} directly * 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [4s] ERROR Running examples in 'psycho-Ex.R' failed The error most likely occurred in: > ### Name: assess > ### Title: Compare a patient's score to a control group > ### Aliases: assess > > ### ** Examples > > result <- assess(patient = 124, mean = 100, sd = 15, n = 100) Error: ! `mutate_()` was deprecated in dplyr 0.7.0 and is now defunct. ℹ Please use `mutate()` instead. ℹ See vignette('programming') for more help Backtrace: ▆ 1. ├─psycho::assess(patient = 124, mean = 100, sd = 15, n = 100) 2. │ └─psycho::crawford.test(...) 3. │ └─... %>% ggplot(aes_string(x = "x", ymin = 0, ymax = "y")) 4. ├─ggplot2::ggplot(., aes_string(x = "x", ymin = 0, ymax = "y")) 5. └─dplyr::mutate_(., x = "scales::rescale(x, from=c(0, 1), to = c(sample_mean, sample_mean+sample_sd))") 6. └─dplyr:::lazy_defunct("mutate") 7. └─lifecycle::deprecate_stop(...) 8. └─lifecycle:::deprecate_stop0(msg) 9. └─rlang::cnd_signal(...) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [7s] ERROR Running 'testthat.R' [6s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(psycho) > > test_check("psycho") Saving _problems/test-assess-10.R Saving _problems/test-assess-45.R The Crawford-Howell (1998) t-test suggests no dissociation between test X and test Y (t(5) = 2.10, p p = 0.090). The patient's score on test X is not significantly altered compared to its score on test Y. .0.00% .33.00% .67.00% .100.00% 1 [ FAIL 2 | WARN 0 | SKIP 0 | PASS 17 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-assess.R:7:3'): assess ───────────────────────────────────────── Error: `mutate_()` was deprecated in dplyr 0.7.0 and is now defunct. ℹ Please use `mutate()` instead. ℹ See vignette('programming') for more help Backtrace: ▆ 1. ├─psycho::assess(...) at test-assess.R:7:3 2. │ └─psycho::crawford.test(...) 3. │ └─... %>% ggplot(aes_string(x = "x", ymin = 0, ymax = "y")) 4. ├─ggplot2::ggplot(., aes_string(x = "x", ymin = 0, ymax = "y")) 5. └─dplyr::mutate_(., x = "scales::rescale(x, from=c(0, 1), to = c(sample_mean, sample_mean+sample_sd))") 6. └─dplyr:::lazy_defunct("mutate") 7. └─lifecycle::deprecate_stop(...) 8. └─lifecycle:::deprecate_stop0(msg) 9. └─rlang::cnd_signal(...) ── Error ('test-assess.R:42:3'): crawford.test ───────────────────────────────── Error: `mutate_()` was deprecated in dplyr 0.7.0 and is now defunct. ℹ Please use `mutate()` instead. ℹ See vignette('programming') for more help Backtrace: ▆ 1. ├─psycho::crawford.test(...) at test-assess.R:42:3 2. │ └─... %>% ggplot(aes_string(x = "x", ymin = 0, ymax = "y")) 3. ├─ggplot2::ggplot(., aes_string(x = "x", ymin = 0, ymax = "y")) 4. └─dplyr::mutate_(., x = "scales::rescale(x, from=c(0, 1), to = c(sample_mean, sample_mean+sample_sd))") 5. └─dplyr:::lazy_defunct("mutate") 6. └─lifecycle::deprecate_stop(...) 7. └─lifecycle:::deprecate_stop0(msg) 8. └─rlang::cnd_signal(...) [ FAIL 2 | WARN 0 | SKIP 0 | PASS 17 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking running R code from vignettes ... SKIPPED * checking re-building of vignette outputs ... SKIPPED * checking PDF version of manual ... [18s] OK * checking HTML version of manual ... [4s] OK * DONE Status: 2 ERRORs, 1 NOTE