* using log directory 'd:/Rcompile/CRANpkg/local/4.4/mde.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 * checking for file 'mde/DESCRIPTION' ... OK * this is package 'mde' version '0.3.2' * 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 'mde' 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 ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] OK * checking whether startup messages can be suppressed ... [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 ... [6s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [2s] ERROR Running examples in 'mde-Ex.R' failed The error most likely occurred in: > ### Name: drop_all_na > ### Title: Drop columns for which all values are NA > ### Aliases: drop_all_na > > ### ** Examples > > test <- data.frame(ID= c("A","A","B","A","B"), Vals = c(rep(NA,4),2)) > test2 <- data.frame(ID= c("A","A","B","A","B"), Vals = rep(NA, 5)) > # drop columns where all values are NA > drop_all_na(test2) ID 1 A 2 A 3 B 4 A 5 B > # drop NAs only if all are NA for a given group, drops group too. > drop_all_na(test, "ID") Error in `dplyr::filter()`: ℹ In argument: `dplyr::across(everything(), ~!all_na(.))`. ℹ In group 1: `ID = "A"`. Caused by error: ! `..1` must be a logical vector, not a object. ℹ If you used `across()` to generate this data frame, please use `if_any()` or `if_all()` instead. Backtrace: ▆ 1. ├─mde::drop_all_na(test, "ID") 2. ├─mde:::drop_all_na.data.frame(test, "ID") 3. │ └─... %>% dplyr::ungroup() 4. ├─dplyr::ungroup(.) 5. ├─dplyr::filter(., dplyr::across(everything(), ~!all_na(.))) 6. ├─dplyr:::filter.data.frame(., dplyr::across(everything(), ~!all_na(.))) 7. │ └─dplyr:::filter_impl(...) 8. │ └─dplyr:::filter_rows(...) 9. │ └─dplyr:::filter_eval(...) 10. │ ├─base::withCallingHandlers(...) 11. │ └─mask$eval_all_filter(dots_expanded, invert, env_filter) 12. │ └─dplyr (local) eval() 13. ├─dplyr:::dplyr_internal_error(...) 14. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 15. │ └─rlang:::signal_abort(cnd, .file) 16. │ └─base::signalCondition(cnd) 17. └─dplyr (local) ``(``) 18. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [8s] ERROR Running 'testthat.R' [8s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(mde) Welcome to mde. This is mde version 0.3.2. Please file issues and feedback at https://www.github.com/Nelson-Gon/mde/issues Turn this message off using 'suppressPackageStartupMessages(library(mde))' Happy Exploration :) > > test_check("mde") Saving _problems/test_drop_all_na-16.R Saving _problems/test_drop_na_if-39.R Dropped 2 rows. Dropped 2 rows. Dropped 2 rows. [ FAIL 2 | WARN 4 | SKIP 15 | PASS 105 ] ══ Skipped tests (15) ══════════════════════════════════════════════════════════ • On CRAN (15): 'test_custom_na_recode.R:1:1', 'test_dict_recode.R:1:1', 'test_drop_na_at.R:1:1', 'test_drop_row_if.R:1:1', 'test_get_na_counts.R:1:1', 'test_na_summary.R:1:1', 'test_percent_missing.R:1:1', 'test_recode_as_na.R:1:1', 'test_recode_as_na_for.R:1:1', 'test_recode_as_na_if.R:1:1', 'test_recode_as_na_str.R:21:1', 'test_recode_as_value.R:1:1', 'test_recode_na_as.R:1:1', 'test_recode_na_if.R:2:1', 'test_sorting_missingness.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_drop_all_na.R:16:13'): drop_all_na errors on absent columns ──── Error in `dplyr::filter(., dplyr::across(everything(), ~!all_na(.)))`: i In argument: `dplyr::across(everything(), ~!all_na(.))`. i In group 1: `ID = "A"`. Caused by error: ! `..1` must be a logical vector, not a object. i If you used `across()` to generate this data frame, please use `if_any()` or `if_all()` instead. Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_drop_all_na.R:16:13 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─base::nrow(drop_all_na(test, grouping_cols = "ID")) 5. ├─mde::drop_all_na(test, grouping_cols = "ID") 6. ├─mde:::drop_all_na.data.frame(test, grouping_cols = "ID") 7. │ └─... %>% dplyr::ungroup() 8. ├─dplyr::ungroup(.) 9. ├─dplyr::filter(., dplyr::across(everything(), ~!all_na(.))) 10. ├─dplyr:::filter.data.frame(., dplyr::across(everything(), ~!all_na(.))) 11. │ └─dplyr:::filter_impl(...) 12. │ └─dplyr:::filter_rows(...) 13. │ └─dplyr:::filter_eval(...) 14. │ ├─base::withCallingHandlers(...) 15. │ └─mask$eval_all_filter(dots_expanded, invert, env_filter) 16. │ └─dplyr (local) eval() 17. ├─dplyr:::dplyr_internal_error(...) 18. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 19. │ └─rlang:::signal_abort(cnd, .file) 20. │ └─base::signalCondition(cnd) 21. └─dplyr (local) ``(``) 22. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test_drop_na_if.R:37:15'): drop_na_if errors as expected ──────────── Error in `dplyr::filter(., dplyr::across(dplyr::everything(), ~!switches(mean(is.na(.)) * 100, sign = sign, percent_na = percent_na)))`: i In argument: `dplyr::across(...)`. i In group 1: `ID = "A"`. Caused by error: ! `..1` must be a logical vector, not a object. i If you used `across()` to generate this data frame, please use `if_any()` or `if_all()` instead. Backtrace: ▆ 1. ├─mde::drop_na_if(grouped_drop, percent_na = 67, grouping_cols = "ID") at test_drop_na_if.R:37:15 2. ├─mde:::drop_na_if.data.frame(grouped_drop, percent_na = 67, grouping_cols = "ID") 3. │ └─... %>% dplyr::ungroup() 4. ├─dplyr::ungroup(.) 5. ├─dplyr::filter(...) 6. ├─dplyr:::filter.data.frame(...) 7. │ └─dplyr:::filter_impl(...) 8. │ └─dplyr:::filter_rows(...) 9. │ └─dplyr:::filter_eval(...) 10. │ ├─base::withCallingHandlers(...) 11. │ └─mask$eval_all_filter(dots_expanded, invert, env_filter) 12. │ └─dplyr (local) eval() 13. ├─dplyr:::dplyr_internal_error(...) 14. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 15. │ └─rlang:::signal_abort(cnd, .file) 16. │ └─base::signalCondition(cnd) 17. └─dplyr (local) ``(``) 18. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) [ FAIL 2 | WARN 4 | SKIP 15 | PASS 105 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [17s] ERROR Error(s) in re-building vignettes: --- re-building 'mde_vignette.rmd' using rmarkdown Quitting from mde_vignette.rmd:499-507 [unnamed-chunk-45] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `dplyr::filter()`: ℹ In argument: `dplyr::across(...)`. ℹ In group 1: `ID = "A"`. Caused by error: ! `..1` must be a logical vector, not a object. ℹ If you used `across()` to generate this data frame, please use `if_any()` or `if_all()` instead. --- Backtrace: ▆ 1. ├─mde::drop_na_if(...) 2. ├─mde:::drop_na_if.data.frame(...) 3. │ └─... %>% dplyr::ungroup() 4. ├─dplyr::ungroup(.) 5. ├─dplyr::filter(...) 6. ├─dplyr:::filter.data.frame(...) 7. │ └─dplyr:::filter_impl(...) 8. │ └─dplyr:::filter_rows(...) 9. │ └─dplyr:::filter_eval(...) 10. │ ├─base::withCallingHandlers(...) 11. │ └─mask$eval_all_filter(dots_expanded, invert, env_filter) 12. │ └─dplyr (local) eval() 13. └─dplyr:::dplyr_internal_error(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'mde_vignette.rmd' failed with diagnostics: ℹ In argument: `dplyr::across(...)`. ℹ In group 1: `ID = "A"`. Caused by error: ! `..1` must be a logical vector, not a object. ℹ If you used `across()` to generate this data frame, please use `if_any()` or `if_all()` instead. --- failed re-building 'mde_vignette.rmd' --- re-building 'missingness.rmd' using rmarkdown --- finished re-building 'missingness.rmd' --- re-building 'recoding.rmd' using rmarkdown Quitting from recoding.rmd:300-308 [unnamed-chunk-25] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `dplyr::filter()`: ℹ In argument: `dplyr::across(...)`. ℹ In group 1: `ID = "A"`. Caused by error: ! `..1` must be a logical vector, not a object. ℹ If you used `across()` to generate this data frame, please use `if_any()` or `if_all()` instead. --- Backtrace: ▆ 1. ├─mde::drop_na_if(...) 2. ├─mde:::drop_na_if.data.frame(...) 3. │ └─... %>% dplyr::ungroup() 4. ├─dplyr::ungroup(.) 5. ├─dplyr::filter(...) 6. ├─dplyr:::filter.data.frame(...) 7. │ └─dplyr:::filter_impl(...) 8. │ └─dplyr:::filter_rows(...) 9. │ └─dplyr:::filter_eval(...) 10. │ ├─base::withCallingHandlers(...) 11. │ └─mask$eval_all_filter(dots_expanded, invert, env_filter) 12. │ └─dplyr (local) eval() 13. └─dplyr:::dplyr_internal_error(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'recoding.rmd' failed with diagnostics: ℹ In argument: `dplyr::across(...)`. ℹ In group 1: `ID = "A"`. Caused by error: ! `..1` must be a logical vector, not a object. ℹ If you used `across()` to generate this data frame, please use `if_any()` or `if_all()` instead. --- failed re-building 'recoding.rmd' SUMMARY: processing the following files failed: 'mde_vignette.rmd' 'recoding.rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... [5s] OK * DONE Status: 3 ERRORs