* using log directory 'd:/Rcompile/CRANpkg/local/4.7/sjmisc.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 18:42:35 UTC * checking for file 'sjmisc/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'sjmisc' version '2.8.11' * 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 'sjmisc' 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 ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [0s] 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 ... [1s] OK * checking loading without being on the library search path ... [1s] OK * checking whether startup messages can be suppressed ... [1s] 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 ... [10s] 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 ... [0s] OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [2s] ERROR Running examples in 'sjmisc-Ex.R' failed The error most likely occurred in: > ### Name: count_na > ### Title: Frequency table of tagged NA values > ### Aliases: count_na > > ### ** Examples > > if (require("haven")) { + x <- labelled( + x = c(1:3, tagged_na("a", "c", "z"), + 4:1, tagged_na("a", "a", "c"), + 1:3, tagged_na("z", "c", "c"), + 1:4, tagged_na("a", "c", "z")), + labels = c("Agreement" = 1, "Disagreement" = 4, + "First" = tagged_na("c"), "Refused" = tagged_na("a"), + "Not home" = tagged_na("z")) + ) + count_na(x) + + y <- labelled( + x = c(1:3, tagged_na("e", "d", "f"), + 4:1, tagged_na("f", "f", "d"), + 1:3, tagged_na("f", "d", "d"), + 1:4, tagged_na("f", "d", "f")), + labels = c("Agreement" = 1, "Disagreement" = 4, "An E" = tagged_na("e"), + "A D" = tagged_na("d"), "The eff" = tagged_na("f")) + ) + + # create data frame + dat <- data.frame(x, y) + + # possible count()-function calls + count_na(dat) + count_na(dat$x) + count_na(dat, x) + count_na(dat, x, y) + } Loading required package: haven Error in as.data.frame.integer(x[[i]], optional = TRUE) : row names contain missing values Calls: count_na ... data.frame -> as.data.frame -> as.data.frame.integer Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [9s] ERROR Running 'testthat.R' [8s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(sjmisc) > > test_check("sjmisc") Saving _problems/test-countna-16.R Saving _problems/test-countna-23.R Saving _problems/test-frq-weights-16.R Saving _problems/test-frq-9.R Saving _problems/test-frq-13.R Saving _problems/test-frq-17.R Saving _problems/test-frq-21.R Saving _problems/test-frq-25.R Saving _problems/test-frq-29.R Saving _problems/test-frq-33.R Saving _problems/test-frq-37.R Saving _problems/test-frq-62.R Saving _problems/test-frq-78.R Saving _problems/test-frq-146.R iter imp variable 1 1 Species 1 2 Species 1 3 Species 1 4 Species 1 5 Species 2 1 Species 2 2 Species 2 3 Species 2 4 Species 2 5 Species 3 1 Species 3 2 Species 3 3 Species 3 4 Species 3 5 Species 4 1 Species 4 2 Species 4 3 Species 4 4 Species 4 5 Species 5 1 Species 5 2 Species 5 3 Species 5 4 Species 5 5 Species One or more of the old values are recoded into identical new values. Please check if you correctly specified the recode-pattern, else separate multiple values with comma, e.g. rec="a,b,c=1; d,e,f=2". [ FAIL 14 | WARN 1 | SKIP 8 | PASS 136 ] ══ Skipped tests (8) ═══════════════════════════════════════════════════════════ • On CRAN (3): 'test-isempty.R:6:3', 'test-move_columns.R:7:3', 'test-rec.R:30:5' • empty test (5): 'test-demean.R:7:3', 'test-frq-weights.R:8:1', 'test-frq.R:44:1', 'test-merge_imputations.R:6:3', 'test-std.R:31:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-countna.R:16:5'): count_na, general ──────────────────────────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. ├─sjmisc::count_na(dat) at test-countna.R:16:5 2. │ └─sjmisc:::count_na_helper(.dat[[i]], cn = i) 3. │ ├─... %>% dplyr::filter(.data$label != "NA") 4. │ └─sjmisc:::frq_helper(...) 5. │ └─base::data.frame(table(x, useNA = "always")) 6. │ ├─base::as.data.frame(x[[i]], optional = TRUE) 7. │ └─base::as.data.frame.table(x[[i]], optional = TRUE) 8. │ ├─base::eval(ex) 9. │ │ └─base::eval(ex) 10. │ └─base::data.frame(...) 11. │ ├─base::as.data.frame(x[[i]], optional = TRUE) 12. │ └─base::as.data.frame.integer(x[[i]], optional = TRUE) 13. ├─dplyr::filter(., .data$label != "NA") 14. ├─dplyr::select(., -.data$val) 15. └─dplyr::mutate(., label = .data$val) ── Error ('test-countna.R:23:5'): count_na, labels ───────────────────────────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. ├─sjmisc::count_na(x) at test-countna.R:23:5 2. │ └─sjmisc:::count_na_helper(.dat, cn = names(.dat)) 3. │ ├─... %>% dplyr::filter(.data$label != "NA") 4. │ └─sjmisc:::frq_helper(...) 5. │ └─base::data.frame(table(x, useNA = "always")) 6. │ ├─base::as.data.frame(x[[i]], optional = TRUE) 7. │ └─base::as.data.frame.table(x[[i]], optional = TRUE) 8. │ ├─base::eval(ex) 9. │ │ └─base::eval(ex) 10. │ └─base::data.frame(...) 11. │ ├─base::as.data.frame(x[[i]], optional = TRUE) 12. │ └─base::as.data.frame.integer(x[[i]], optional = TRUE) 13. ├─dplyr::filter(., .data$label != "NA") 14. ├─dplyr::select(., -.data$val) 15. └─dplyr::mutate(., label = .data$val) ── Error ('test-frq-weights.R:16:3'): frq-weights ────────────────────────────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. └─sjmisc::frq(efc, e16sex) at test-frq-weights.R:16:3 2. └─sjmisc:::frq_helper(...) 3. └─base::data.frame(table(x, useNA = "always")) 4. ├─base::as.data.frame(x[[i]], optional = TRUE) 5. └─base::as.data.frame.table(x[[i]], optional = TRUE) 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-frq.R:9:3'): frq ─────────────────────────────────────────────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. ├─testthat::expect_is(frq(efc$e42dep), class = "list") at test-frq.R:9:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─sjmisc::frq(efc$e42dep) 5. └─sjmisc:::frq_helper(...) 6. └─base::data.frame(table(x, useNA = "always")) 7. ├─base::as.data.frame(x[[i]], optional = TRUE) 8. └─base::as.data.frame.table(x[[i]], optional = TRUE) 9. ├─base::eval(ex) 10. │ └─base::eval(ex) 11. └─base::data.frame(...) 12. ├─base::as.data.frame(x[[i]], optional = TRUE) 13. └─base::as.data.frame.integer(x[[i]], optional = TRUE) ── Error ('test-frq.R:13:3'): frq ────────────────────────────────────────────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. ├─testthat::expect_is(frq(efc$e42dep, sort.frq = "asc"), class = "list") at test-frq.R:13:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─sjmisc::frq(efc$e42dep, sort.frq = "asc") 5. └─sjmisc:::frq_helper(...) 6. └─base::data.frame(table(x, useNA = "always")) 7. ├─base::as.data.frame(x[[i]], optional = TRUE) 8. └─base::as.data.frame.table(x[[i]], optional = TRUE) 9. ├─base::eval(ex) 10. │ └─base::eval(ex) 11. └─base::data.frame(...) 12. ├─base::as.data.frame(x[[i]], optional = TRUE) 13. └─base::as.data.frame.integer(x[[i]], optional = TRUE) ── Error ('test-frq.R:17:3'): frq ────────────────────────────────────────────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. ├─testthat::expect_is(frq(efc, e42dep, e16sex), class = "list") at test-frq.R:17:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─sjmisc::frq(efc, e42dep, e16sex) 5. └─sjmisc:::frq_helper(...) 6. └─base::data.frame(table(x, useNA = "always")) 7. ├─base::as.data.frame(x[[i]], optional = TRUE) 8. └─base::as.data.frame.table(x[[i]], optional = TRUE) 9. ├─base::eval(ex) 10. │ └─base::eval(ex) 11. └─base::data.frame(...) 12. ├─base::as.data.frame(x[[i]], optional = TRUE) 13. └─base::as.data.frame.integer(x[[i]], optional = TRUE) ── Error ('test-frq.R:21:3'): frq ────────────────────────────────────────────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. ├─testthat::expect_is(...) at test-frq.R:21:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─sjmisc::frq(efc, e42dep, e16sex, sort.frq = "asc") 5. └─sjmisc:::frq_helper(...) 6. └─base::data.frame(table(x, useNA = "always")) 7. ├─base::as.data.frame(x[[i]], optional = TRUE) 8. └─base::as.data.frame.table(x[[i]], optional = TRUE) 9. ├─base::eval(ex) 10. │ └─base::eval(ex) 11. └─base::data.frame(...) 12. ├─base::as.data.frame(x[[i]], optional = TRUE) 13. └─base::as.data.frame.integer(x[[i]], optional = TRUE) ── Error ('test-frq.R:25:3'): frq ────────────────────────────────────────────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. ├─testthat::expect_is(frq(efc$c12hour, auto.grp = 5), class = "list") at test-frq.R:25:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─sjmisc::frq(efc$c12hour, auto.grp = 5) 5. └─sjmisc:::frq_helper(...) 6. └─base::data.frame(table(x, useNA = "always")) 7. ├─base::as.data.frame(x[[i]], optional = TRUE) 8. └─base::as.data.frame.table(x[[i]], optional = TRUE) 9. ├─base::eval(ex) 10. │ └─base::eval(ex) 11. └─base::data.frame(...) 12. ├─base::as.data.frame(x[[i]], optional = TRUE) 13. └─base::as.data.frame.integer(x[[i]], optional = TRUE) ── Error ('test-frq.R:29:3'): frq ────────────────────────────────────────────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. ├─testthat::expect_is(...) at test-frq.R:29:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─sjmisc::frq(efc, c12hour, e17age, auto.grp = 5) 5. └─sjmisc:::frq_helper(...) 6. └─base::data.frame(table(x, useNA = "always")) 7. ├─base::as.data.frame(x[[i]], optional = TRUE) 8. └─base::as.data.frame.table(x[[i]], optional = TRUE) 9. ├─base::eval(ex) 10. │ └─base::eval(ex) 11. └─base::data.frame(...) 12. ├─base::as.data.frame(x[[i]], optional = TRUE) 13. └─base::as.data.frame.integer(x[[i]], optional = TRUE) ── Error ('test-frq.R:33:3'): frq ────────────────────────────────────────────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. ├─testthat::expect_is(...) at test-frq.R:33:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─sjmisc::frq(efc, c12hour, e17age, auto.grp = 5, sort.frq = "desc") 5. └─sjmisc:::frq_helper(...) 6. └─base::data.frame(table(x, useNA = "always")) 7. ├─base::as.data.frame(x[[i]], optional = TRUE) 8. └─base::as.data.frame.table(x[[i]], optional = TRUE) 9. ├─base::eval(ex) 10. │ └─base::eval(ex) 11. └─base::data.frame(...) 12. ├─base::as.data.frame(x[[i]], optional = TRUE) 13. └─base::as.data.frame.integer(x[[i]], optional = TRUE) ── Error ('test-frq.R:37:3'): frq ────────────────────────────────────────────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. └─sjmisc::frq(efc$e42dep, title = "test") at test-frq.R:37:3 2. └─sjmisc:::frq_helper(...) 3. └─base::data.frame(table(x, useNA = "always")) 4. ├─base::as.data.frame(x[[i]], optional = TRUE) 5. └─base::as.data.frame.table(x[[i]], optional = TRUE) 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-frq.R:62:3'): frq, show.na ───────────────────────────────────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. ├─testthat::expect_equal(nrow(frq(v1, show.na = TRUE)[[1]]), 3) at test-frq.R:62:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─base::nrow(frq(v1, show.na = TRUE)[[1]]) 5. └─sjmisc::frq(v1, show.na = TRUE) 6. └─sjmisc:::frq_helper(...) 7. └─base::data.frame(table(x, useNA = "always")) 8. ├─base::as.data.frame(x[[i]], optional = TRUE) 9. └─base::as.data.frame.table(x[[i]], optional = TRUE) 10. ├─base::eval(ex) 11. │ └─base::eval(ex) 12. └─base::data.frame(...) 13. ├─base::as.data.frame(x[[i]], optional = TRUE) 14. └─base::as.data.frame.integer(x[[i]], optional = TRUE) ── Error ('test-frq.R:78:3'): frq ────────────────────────────────────────────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. └─sjmisc::frq(efc$e15relat) at test-frq.R:78:3 2. └─sjmisc:::frq_helper(...) 3. └─base::data.frame(table(x, useNA = "always")) 4. ├─base::as.data.frame(x[[i]], optional = TRUE) 5. └─base::as.data.frame.table(x[[i]], optional = TRUE) 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-frq.R:110:3'): frq, string ───────────────────────────────────── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-frq.R:110:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─sjmisc::frq(dat$x) 5. └─sjmisc:::frq_helper(...) 6. └─base::data.frame(table(x, useNA = "always")) 7. ├─base::as.data.frame(x[[i]], optional = TRUE) 8. └─base::as.data.frame.table(x[[i]], optional = TRUE) 9. ├─base::eval(ex) 10. │ └─base::eval(ex) 11. └─base::data.frame(...) 12. ├─base::as.data.frame(x[[i]], optional = TRUE) 13. └─base::as.data.frame.integer(x[[i]], optional = TRUE) [ FAIL 14 | WARN 1 | SKIP 8 | PASS 136 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [8s] ERROR Error(s) in re-building vignettes: --- re-building 'design_philosophy.Rmd' using rmarkdown --- finished re-building 'design_philosophy.Rmd' --- re-building 'exploringdatasets.Rmd' using rmarkdown Quitting from exploringdatasets.Rmd:37-39 [unnamed-chunk-3] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `as.data.frame.integer()`: ! row names contain missing values --- Backtrace: ▆ 1. └─sjmisc::frq(efc$c161sex) 2. └─sjmisc:::frq_helper(...) 3. └─base::data.frame(table(x, useNA = "always")) 4. ├─base::as.data.frame(x[[i]], optional = TRUE) 5. └─base::as.data.frame.table(x[[i]], optional = TRUE) 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: processing vignette 'exploringdatasets.Rmd' failed with diagnostics: row names contain missing values --- failed re-building 'exploringdatasets.Rmd' --- re-building 'recodingvariables.Rmd' using rmarkdown Quitting from recodingvariables.Rmd:42-53 [unnamed-chunk-3] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `as.data.frame.integer()`: ! row names contain missing values --- Backtrace: ▆ 1. └─sjmisc::frq(efc, e17age, auto.grp = 5) 2. └─sjmisc:::frq_helper(...) 3. └─base::data.frame(table(x, useNA = "always")) 4. ├─base::as.data.frame(x[[i]], optional = TRUE) 5. └─base::as.data.frame.table(x[[i]], optional = TRUE) 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: processing vignette 'recodingvariables.Rmd' failed with diagnostics: row names contain missing values --- failed re-building 'recodingvariables.Rmd' SUMMARY: processing the following files failed: 'exploringdatasets.Rmd' 'recodingvariables.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [22s] OK * checking HTML version of manual ... [16s] OK * DONE Status: 3 ERRORs