- using R version 4.5.2 Patched (2026-01-31 r89374)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.3.0-10) 14.3.0
GNU Fortran (Debian 14.3.0-10) 14.3.0
- running under: Debian GNU/Linux forky/sid
- 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 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 ‘mde’ 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/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/10s] OK
- checking Rd files ... [0s/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/2s] ERROR
Running examples in ‘mde-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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 <tbl_df/tbl/data.frame> 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) `<fn>`(`<dpl:::__>`)
18. └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [6s/8s] ERROR
Running ‘testthat.R’ [6s/7s]
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 <tbl_df/tbl/data.frame> 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) `<fn>`(`<dpl:::__>`)
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 <tbl_df/tbl/data.frame> 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) `<fn>`(`<dpl:::__>`)
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 ... [10s/13s] 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/rlang_error>
Error in `dplyr::filter()`:
ℹ In argument: `dplyr::across(...)`.
ℹ In group 1: `ID = "A"`.
Caused by error:
! `..1` must be a logical vector, not a <tbl_df/tbl/data.frame> 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 <tbl_df/tbl/data.frame> 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/rlang_error>
Error in `dplyr::filter()`:
ℹ In argument: `dplyr::across(...)`.
ℹ In group 1: `ID = "A"`.
Caused by error:
! `..1` must be a logical vector, not a <tbl_df/tbl/data.frame> 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 <tbl_df/tbl/data.frame> 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 ... [5s/7s] OK
- checking HTML version of manual ... [1s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 3 ERRORs