- using R Under development (unstable) (2025-12-21 r89215)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘retroharmonize/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘retroharmonize’ version ‘0.2.0’
- 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 ‘retroharmonize’ can be installed ... [12s/14s] OK
See the install log for details.
- 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 ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... 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 ... [18s/22s] OK
- checking Rd files ... NOTE
checkRd: (-1) harmonize_values.Rd:44: Lost braces; missing escapes or markup?
44 | \item{perl}{Use perl-like regex? Defaults to {FALSE}.}
| ^
- 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 R/sysdata.rda ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... ERROR
Running examples in ‘retroharmonize-Ex.R’ failed
The error most likely occurred in:
> ### Name: create_codebook
> ### Title: Create a codebook
> ### Aliases: create_codebook codebook_waves_create
>
> ### ** Examples
>
> create_codebook (
+ survey = read_rds (
+ system.file("examples", "ZA7576.rds",
+ package = "retroharmonize")
+ )
+ )
Error in `bind_rows()`:
! Can't combine `..1$val_label_orig` <double> and `..2$val_label_orig` <character>.
Backtrace:
▆
1. ├─retroharmonize::create_codebook(...)
2. │ └─num_labels %>% bind_rows(char_labels) %>% ...
3. ├─dplyr::arrange(., .data$entry)
4. ├─dplyr::bind_rows(., char_labels)
5. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())
6. └─vctrs (local) `<fn>`()
7. └─vctrs::vec_default_ptype2(...)
8. ├─base::withRestarts(...)
9. │ └─base (local) withOneRestart(expr, restarts[[1L]])
10. │ └─base (local) doWithOneRestart(return(expr), restart)
11. └─vctrs::stop_incompatible_type(...)
12. └─vctrs:::stop_incompatible(...)
13. └─vctrs:::stop_vctrs(...)
14. └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = call)
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [18s/22s] ERROR
Running ‘spelling.R’
Running ‘testthat.R’ [17s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(retroharmonize)
>
> test_check("retroharmonize")
Saving _problems/test-codebook_create-12.R
dbl+lbl [1:7] 1, 0, 1, 1, 0, 8, 9
@ labels : Named num [1:4] 1 0 8 9
..- attr(*, "names")= chr [1:4] "TRUST" "NOT TRUST" "DON'T KNOW" "INAP. HERE"
@ na_values: num [1:2] 8 9
Loading required package: dplyr
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
Attaching package: 'vctrs'
The following object is masked from 'package:dplyr':
data_frame
Attaching package: 'rlang'
The following object is masked from 'package:retroharmonize':
as_character
Survey ID: test
Survey ID: test2
Survey ID: test2
Survey ID: test2
Survey ID: test
[ FAIL 1 | WARN 23 | SKIP 3 | PASS 99 ]
══ Skipped tests (3) ═══════════════════════════════════════════════════════════
• On CRAN (3): 'test-harmonize_na_values.R:18:3',
'test-labelled_spss_survey.R:136:1', 'test-subset_save_surveys.R:32:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-codebook_create.R:12:1'): (code run outside of `test_that()`) ──
<vctrs_error_ptype2/vctrs_error_incompatible_type/vctrs_error_incompatible/vctrs_error/rlang_error/error/condition>
Error in `bind_rows(., char_labels)`: Can't combine `..1$val_label_orig` <double> and `..2$val_label_orig` <character>.
Backtrace:
▆
1. ├─retroharmonize::create_codebook(metadata) at test-codebook_create.R:12:1
2. │ └─num_labels %>% bind_rows(char_labels) %>% ...
3. ├─dplyr::arrange(., .data$entry)
4. ├─dplyr::bind_rows(., char_labels)
5. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())
6. └─vctrs (local) `<fn>`()
7. └─vctrs::vec_default_ptype2(...)
8. ├─base::withRestarts(...)
9. │ └─base (local) withOneRestart(expr, restarts[[1L]])
10. │ └─base (local) doWithOneRestart(return(expr), restart)
11. └─vctrs::stop_incompatible_type(...)
12. └─vctrs:::stop_incompatible(...)
13. └─vctrs:::stop_vctrs(...)
14. └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = call)
[ FAIL 1 | WARN 23 | SKIP 3 | PASS 99 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [94s/125s] OK
- checking PDF version of manual ... [8s/11s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 2 ERRORs, 1 NOTE