- using R version 4.4.1 (2024-06-14)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.2.0-3) 14.2.0
GNU Fortran (Debian 14.2.0-3) 14.2.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘tidyREDCap/DESCRIPTION’ ... OK
- this is package ‘tidyREDCap’ version ‘1.1.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 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 ‘tidyREDCap’ 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/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the package can be unloaded cleanly ... [1s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/2s] OK
- checking loading without being on the library search path ... [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 ... [8s/11s] OK
- checking Rd files ... [0s/0s] 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] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [5s/10s] ERROR
Running ‘testthat.R’ [4s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(tidyREDCap)
>
> test_check("tidyREDCap")
Reading metadata about your project....
Reading variable labels for your variables....
Reading your data....
ℹ This may take a while if your dataset is large.
[ FAIL 1 | WARN 8 | SKIP 0 | PASS 13 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-import_instruments.R:72:1'): (code run outside of `test_that()`) ──
<vctrs_error_names_must_be_unique/vctrs_error_names/vctrs_error/rlang_error/error/condition>
Error in `select(., -ends_with(".1"))`: Names must be unique.
✖ These names are duplicated:
* "record_id" at locations 1 and 2.
Backtrace:
▆
1. ├─tidyREDCap::import_instruments(...) at test-import_instruments.R:72:1
2. │ └─redcap[, c(meta, curr_instr_idx)] %>% ...
3. ├─dplyr::select(., -ends_with(".1"))
4. └─dplyr:::select.data.frame(., -ends_with(".1"))
5. └─tidyselect::eval_select(expr(c(...)), data = .data, error_call = error_call)
6. └─tidyselect:::eval_select_impl(...)
7. ├─tidyselect:::with_subscript_errors(...)
8. │ └─base::withCallingHandlers(...)
9. └─tidyselect:::vars_select_eval(...)
10. └─tidyselect:::ensure_named(...)
11. └─vctrs::vec_as_names(names(pos), repair = "check_unique", call = call)
12. └─vctrs (local) `<fn>`()
13. └─vctrs:::validate_unique(names = names, arg = arg, call = call)
14. └─vctrs:::stop_names_must_be_unique(names, arg, call = call)
15. └─vctrs:::stop_names(...)
16. └─vctrs:::stop_vctrs(...)
17. └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = call)
[ FAIL 1 | WARN 8 | SKIP 0 | PASS 13 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [19s/28s] OK
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [0s/0s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR