* using log directory 'd:/Rcompile/CRANpkg/local/4.5/useful.Rcheck' * using R version 4.5.2 (2025-10-31 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'useful/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'useful' version '1.2.6.1' * 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 'useful' can be installed ... OK * checking installed package size ... OK * checking package 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 ... [1s] 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 ... [5s] OK * checking Rd files ... [1s] OK * 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 examples ... [16s] ERROR Running examples in 'useful-Ex.R' failed The error most likely occurred in: > ### Name: moveToFront > ### Title: moveToFront > ### Aliases: moveToFront moveToBack > > ### ** Examples > > theDF <- data.frame(A=1:10, B=11:20, C=1:10, D=11:20) > moveToFront(theDF, c('B', 'C')) Error: ! `select_()` was deprecated in dplyr 0.7.0 and is now defunct. ℹ Please use `select()` instead. Backtrace: ▆ 1. ├─useful::moveToFront(theDF, c("B", "C")) 2. │ └─data %>% select_(.dots = colOrder) 3. └─dplyr::select_(., .dots = colOrder) 4. └─dplyr:::lazy_defunct("select", hint = FALSE) 5. └─lifecycle::deprecate_stop(...) 6. └─lifecycle:::deprecate_stop0(msg) 7. └─rlang::cnd_signal(...) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [18s] ERROR Running 'testthat.R' [18s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(useful) Loading required package: ggplot2 > > test_check("useful") Error in detach("package:coefplot", unload = TRUE) : invalid 'name' argument Saving _problems/test-move-cols-37.R Saving _problems/test-move-cols-46.R Saving _problems/test-move-cols-55.R Saving _problems/test-unique-7.R [ FAIL 4 | WARN 7 | SKIP 2 | PASS 721 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • On CRAN (2): 'test-load-packages.R:11:5', 'test-load-packages.R:18:5' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-move-cols.r:37:5'): cols to front/back returns data.frame ────── Error: `select_()` was deprecated in dplyr 0.7.0 and is now defunct. ℹ Please use `select()` instead. Backtrace: ▆ 1. ├─testthat::expect_is(moveToFront(theDF, c("B", "C")), "data.frame") at test-move-cols.r:37:5 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─useful::moveToFront(theDF, c("B", "C")) 5. │ └─data %>% select_(.dots = colOrder) 6. └─dplyr::select_(., .dots = colOrder) 7. └─dplyr:::lazy_defunct("select", hint = FALSE) 8. └─lifecycle::deprecate_stop(...) 9. └─lifecycle:::deprecate_stop0(msg) 10. └─rlang::cnd_signal(...) ── Error ('test-move-cols.r:46:5'): cols to front/back returns the right dimension ── Error: `select_()` was deprecated in dplyr 0.7.0 and is now defunct. ℹ Please use `select()` instead. Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-move-cols.r:46:5 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─useful::moveToFront(theDF, c("B", "C")) 5. │ └─data %>% select_(.dots = colOrder) 6. └─dplyr::select_(., .dots = colOrder) 7. └─dplyr:::lazy_defunct("select", hint = FALSE) 8. └─lifecycle::deprecate_stop(...) 9. └─lifecycle:::deprecate_stop0(msg) 10. └─rlang::cnd_signal(...) ── Error ('test-move-cols.r:55:5'): cols to front/back returns the right names ── Error: `select_()` was deprecated in dplyr 0.7.0 and is now defunct. ℹ Please use `select()` instead. Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-move-cols.r:55:5 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─useful::moveToFront(theDF, c("B", "C")) 5. │ └─data %>% select_(.dots = colOrder) 6. └─dplyr::select_(., .dots = colOrder) 7. └─dplyr:::lazy_defunct("select", hint = FALSE) 8. └─lifecycle::deprecate_stop(...) 9. └─lifecycle:::deprecate_stop0(msg) 10. └─rlang::cnd_signal(...) ── Error ('test-unique.R:7:1'): (code run outside of `test_that()`) ──────────── Error: `as.tbl()` was deprecated in dplyr 1.0.0 and is now defunct. ℹ Please use `tibble::as_tibble()` instead. Backtrace: ▆ 1. └─dplyr::as.tbl(...) at test-unique.R:7:1 2. └─lifecycle::deprecate_stop("1.0.0", "as.tbl()", "tibble::as_tibble()") 3. └─lifecycle:::deprecate_stop0(msg) 4. └─rlang::cnd_signal(...) [ FAIL 4 | WARN 7 | SKIP 2 | PASS 721 ] Error: ! Test failures. Execution halted * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... [10s] OK * DONE Status: 2 ERRORs