* using log directory 'd:/Rcompile/CRANpkg/local/4.4/retroharmonize.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 '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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'retroharmonize' can be installed ... OK * checking installed package size ... NOTE installed size is 5.6Mb sub-directories of 1Mb or more: doc 1.1Mb examples 1.9Mb * 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 ... [2s] 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 ... [2s] OK * checking loading without being on the library search path ... [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 ... [9s] OK * checking Rd files ... [1s] 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 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 ... [4s] 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` and `..2$val_label_orig` . 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) ``() 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 ... [15s] ERROR Running 'spelling.R' [0s] Running 'testthat.R' [14s] 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()`) ── Error in `bind_rows(., char_labels)`: Can't combine `..1$val_label_orig` and `..2$val_label_orig` . 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) ``() 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 ... [61s] OK * checking PDF version of manual ... [18s] OK * checking HTML version of manual ... [6s] OK * DONE Status: 2 ERRORs, 2 NOTEs