* using log directory 'd:/Rcompile/CRANpkg/local/4.7/cat2cat.Rcheck' * using R Under development (unstable) (2026-05-01 r89993 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-05-03 10:35:04 UTC * checking for file 'cat2cat/DESCRIPTION' ... OK * this is package 'cat2cat' version '0.4.7' * 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 'cat2cat' can be installed ... OK * checking installed package size ... OK * 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 ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] 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 ... [3s] OK * checking Rd files ... [1s] OK * 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... [1s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [15s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [103s] ERROR Running 'testthat.R' [102s] Running the tests in 'tests/testthat.R' failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library("testthat") > library("cat2cat") > > test_check("cat2cat") 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 Saving _problems/test-cat2cat-160.R Saving _problems/test-cat2cat_internal_utils-6.R Saving _problems/test-cat2cat_internal_utils-42.R Loading required package: ggplot2 Loading required package: lattice randomForest 4.7-1.2 Type rfNews() to see new features/changes/bug fixes. Attaching package: 'randomForest' The following object is masked from 'package:ggplot2': margin The following object is masked from 'package:dplyr': combine Adding missing grouping variables: `index_c2c` [ FAIL 3 | WARN 0 | SKIP 0 | PASS 105 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-cat2cat.R:141:1'): (code run outside of `test_that()`) ───────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. └─cat2cat::cat2cat(...) at test-cat2cat.R:141:1 2. └─cat2cat:::resolve_frequencies(...) 3. └─cat2cat::get_freqs(cats_base, if (!is.null(multiplier_var)) cat_base_year[[multiplier_var]]) 4. ├─base::as.data.frame(table(input, useNA = "ifany"), stringsAsFactors = FALSE) 5. └─base::as.data.frame.table(table(input, useNA = "ifany"), stringsAsFactors = FALSE) 6. ├─base::eval(ex) 7. │ └─base::eval(ex) 8. └─base::data.frame(...) 9. ├─base::as.data.frame(x[[i]], optional = TRUE) 10. └─base::as.data.frame.integer(x[[i]], optional = TRUE) ── Error ('test-cat2cat_internal_utils.R:3:3'): get_freqs ────────────────────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test-cat2cat_internal_utils.R:3:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─cat2cat::get_freqs(input) 5. ├─base::as.data.frame(table(input, useNA = "ifany"), stringsAsFactors = FALSE) 6. └─base::as.data.frame.table(table(input, useNA = "ifany"), stringsAsFactors = FALSE) 7. ├─base::eval(ex) 8. │ └─base::eval(ex) 9. └─base::data.frame(...) 10. ├─base::as.data.frame(x[[i]], optional = TRUE) 11. └─base::as.data.frame.integer(x[[i]], optional = TRUE) ── Error ('test-cat2cat_internal_utils.R:39:3'): cat_apply_freq ──────────────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. ├─cat2cat::cat_apply_freq(...) at test-cat2cat_internal_utils.R:39:3 2. │ ├─base::stopifnot(ncol(freqs) == 2) 3. │ └─base::ncol(freqs) 4. └─cat2cat::get_freqs(c(1, 1, 1, 1, 2, 3, 3, NA, NA)) 5. ├─base::as.data.frame(table(input, useNA = "ifany"), stringsAsFactors = FALSE) 6. └─base::as.data.frame.table(table(input, useNA = "ifany"), stringsAsFactors = FALSE) 7. ├─base::eval(ex) 8. │ └─base::eval(ex) 9. └─base::data.frame(...) 10. ├─base::as.data.frame(x[[i]], optional = TRUE) 11. └─base::as.data.frame.integer(x[[i]], optional = TRUE) [ FAIL 3 | WARN 0 | SKIP 0 | PASS 105 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [47s] OK * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... [4s] OK * DONE Status: 1 ERROR