- using R version 4.5.2 (2025-10-31)
- 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 ‘eHDPrep/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘eHDPrep’ version ‘1.3.4’
- 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 ‘eHDPrep’ 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 ... [4s/6s] OK
- checking whether the package can be loaded with stated dependencies ... [4s/5s] OK
- checking whether the package can be unloaded cleanly ... [4s/6s] OK
- checking whether the namespace can be loaded with stated dependencies ... [4s/5s] OK
- checking whether the namespace can be unloaded cleanly ... [5s/7s] OK
- checking loading without being on the library search path ... [4s/7s] 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 ... [23s/28s] OK
- checking Rd files ... [1s/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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking sizes of PDF files under ‘inst/doc’ ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [6s/8s] ERROR
Running examples in ‘eHDPrep-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: apply_quality_ctrl
> ### Title: Apply quality control measures to a dataset
> ### Aliases: apply_quality_ctrl
>
> ### ** Examples
>
> data(example_data)
> require(tibble)
Loading required package: tibble
>
> # create an example class_tbl object
> # note that diabetes_type is classes as ordinal and is not modified as its
> # levels are not pre-coded
> tibble::tribble(~"var", ~"datatype",
+ "patient_id", "id",
+ "tumoursize", "numeric",
+ "t_stage", "ordinal_tstage",
+ "n_stage", "ordinal_nstage",
+ "diabetes", "factor",
+ "diabetes_type", "ordinal",
+ "hypertension", "factor",
+ "rural_urban", "factor",
+ "marital_status", "factor",
+ "SNP_a", "genotype",
+ "SNP_b", "genotype",
+ "free_text", "freetext") -> data_types
>
> data_QC <- apply_quality_ctrl(example_data, patient_id, data_types,
+ bin_cats =c("No" = "Yes", "rural" = "urban"), min_freq = 0.6)
Error in `dplyr::summarise()`:
ℹ In argument: `dplyr::across(everything(), ~!.x %in% ord_levels)`.
Caused by error:
! `dplyr::across(everything(), ~!.x %in% ord_levels)` must be size 1,
not 1000.
ℹ To return more or less than 1 row per group, use `reframe()`.
Backtrace:
▆
1. ├─eHDPrep::apply_quality_ctrl(...)
2. │ └─... %>% suppressWarnings()
3. ├─base::suppressWarnings(.)
4. │ └─base::withCallingHandlers(...)
5. ├─eHDPrep::encode_cats(...)
6. │ └─dplyr::select(data, !!!dplyr::enquos(...))
7. ├─base::suppressMessages(.)
8. │ └─base::withCallingHandlers(...)
9. ├─eHDPrep::encode_genotypes(...)
10. │ └─data %>% ...
11. ├─dplyr::mutate(., dplyr::across(c(!!!vars), encode_genotype_vec))
12. ├─eHDPrep::encode_ordinals(...)
13. │ └─... %>% dplyr::filter(.data$value > 0)
14. ├─dplyr::filter(., .data$value > 0)
15. ├─tidyr::pivot_longer(., dplyr::everything())
16. ├─dplyr::summarise(., dplyr::across(c(!!!vars), sum))
17. ├─dplyr::summarise(., dplyr::across(everything(), ~!.x %in% ord_levels))
18. ├─dplyr::select(., !!!vars)
19. ├─eHDPrep::encode_ordinals(...)
20. │ └─... %>% dplyr::filter(.data$value > 0)
21. ├─dplyr::filter(., .data$value > 0)
22. ├─tidyr::pivot_longer(., dplyr::everything())
23. ├─dplyr::summarise(., dplyr::across(c(!!!vars), sum))
24. ├─dplyr::summarise(., dplyr::across(everything(), ~!.x %in% ord_levels))
25. ├─dplyr:::summarise.data.frame(., dplyr::across(everything(), ~!.x %in% ord_levels))
26. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise")
27. │ └─base::withCallingHandlers(...)
28. ├─dplyr:::dplyr_internal_error(...)
29. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data)
30. │ └─rlang:::signal_abort(cnd, .file)
31. │ └─base::signalCondition(cnd)
32. └─dplyr (local) `<fn>`(`<dpl:::__>`)
33. └─dplyr (local) handler(cnd)
34. └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [12s/16s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘Introduction_to_eHDPrep.Rmd’ using rmarkdown
Quitting from Introduction_to_eHDPrep.Rmd:245-252 [unnamed-chunk-14]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `dplyr::summarise()`:
i In argument: `dplyr::across(everything(), ~!.x %in% ord_levels)`.
Caused by error:
! `dplyr::across(everything(), ~!.x %in% ord_levels)` must be size 1,
not 1000.
i To return more or less than 1 row per group, use `reframe()`.
---
Backtrace:
x
1. +-eHDPrep::apply_quality_ctrl(...)
2. | \-... %>% suppressWarnings()
3. +-base::suppressWarnings(.)
4. | \-base::withCallingHandlers(...)
5. +-eHDPrep::encode_cats(...)
6. | \-dplyr::select(data, !!!dplyr::enquos(...))
7. +-base::suppressMessages(.)
8. | \-base::withCallingHandlers(...)
9. +-eHDPrep::encode_genotypes(...)
10. | \-data %>% ...
11. +-dplyr::mutate(., dplyr::across(c(!!!vars), encode_genotype_vec))
12. +-eHDPrep::encode_ordinals(...)
13. | \-... %>% dplyr::filter(.data$value > 0)
14. +-dplyr::filter(., .data$value > 0)
15. +-tidyr::pivot_longer(., dplyr::everything())
16. +-dplyr::summarise(., dplyr::across(c(!!!vars), sum))
17. +-dplyr::summarise(., dplyr::across(everything(), ~!.x %in% ord_levels))
18. +-dplyr::select(., !!!vars)
19. +-eHDPrep::encode_ordinals(...)
20. | \-... %>% dplyr::filter(.data$value > 0)
21. +-dplyr::filter(., .data$value > 0)
22. +-tidyr::pivot_longer(., dplyr::everything())
23. +-dplyr::summarise(., dplyr::across(c(!!!vars), sum))
24. +-dplyr::summarise(., dplyr::across(everything(), ~!.x %in% ord_levels))
25. +-dplyr:::summarise.data.frame(., dplyr::across(everything(), ~!.x %in% ord_levels))
26. | \-dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise")
27. | \-base::withCallingHandlers(...)
28. \-dplyr:::dplyr_internal_error(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'Introduction_to_eHDPrep.Rmd' failed with diagnostics:
ℹ In argument: `dplyr::across(everything(), ~!.x %in% ord_levels)`.
Caused by error:
! `dplyr::across(everything(), ~!.x %in% ord_levels)` must be size 1,
not 1000.
ℹ To return more or less than 1 row per group, use `reframe()`.
--- failed re-building ‘Introduction_to_eHDPrep.Rmd’
SUMMARY: processing the following file failed:
‘Introduction_to_eHDPrep.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [9s/11s] OK
- checking HTML version of manual ... [3s/5s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs