* using log directory 'd:/Rcompile/CRANpkg/local/4.7/tidyaudit.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 19:42:05 UTC * checking for file 'tidyaudit/DESCRIPTION' ... OK * this is package 'tidyaudit' 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 'tidyaudit' 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 ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [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 ... [9s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [5s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [31s] ERROR Running 'testthat.R' [31s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(tidyaudit) > > test_check("tidyaudit") i filter_tap: amount > 300 Dropped 3 of 10 rows (30.0%) before after hello hello before after 1 2 2 4 3 6 before after 2020-01-01 2020-01-11 2020-12-31 2021-01-10 Saving _problems/test-audit-transform-207.R Saving _problems/test-audit-transform-217.R Saving _problems/test-audit-transform-227.R before after TRUE FALSE FALSE TRUE TRUE FALSE Saving _problems/test-audit-transform-354.R [1] x <0 rows> (or 0-length row.names) [1] x <0 rows> (or 0-length row.names) i filter_tap: amount > 300 Dropped 3 of 10 rows (30.0%) Joining with `by = join_by(id)` lower n_variants examples apple 2 Apple, APPLE id n 1 1 2 [ FAIL 4 | WARN 0 | SKIP 0 | PASS 1185 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-audit-transform.R:204:3'): audit_transform [factor] detects level changes ── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. └─tidyaudit::audit_transform(...) at test-audit-transform.R:204:3 2. └─tidyaudit:::.audit_transform_diagnostics(...) 3. └─tidyaudit:::.factor_counts(x) 4. ├─base::as.data.frame(table(x, useNA = "always"), stringsAsFactors = FALSE) 5. └─base::as.data.frame.table(table(x, useNA = "always"), 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-audit-transform.R:217:3'): audit_transform [factor] level_counts have correct structure ── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. └─tidyaudit::audit_transform(f, function(v) factor(toupper(as.character(v)))) at test-audit-transform.R:217:3 2. └─tidyaudit:::.audit_transform_diagnostics(...) 3. └─tidyaudit:::.factor_counts(x) 4. ├─base::as.data.frame(table(x, useNA = "always"), stringsAsFactors = FALSE) 5. └─base::as.data.frame.table(table(x, useNA = "always"), 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-audit-transform.R:227:3'): print.audit_transform [factor] mentions type ── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. └─tidyaudit::audit_transform(f, function(v) factor(toupper(as.character(v)))) at test-audit-transform.R:227:3 2. └─tidyaudit:::.audit_transform_diagnostics(...) 3. └─tidyaudit:::.factor_counts(x) 4. ├─base::as.data.frame(table(x, useNA = "always"), stringsAsFactors = FALSE) 5. └─base::as.data.frame.table(table(x, useNA = "always"), 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-audit-transform.R:354:3'): audit_transform [factor] handles clean_fn returning character ── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. └─tidyaudit::audit_transform(f, function(v) as.character(v)) at test-audit-transform.R:354:3 2. └─tidyaudit:::.audit_transform_diagnostics(...) 3. └─tidyaudit:::.factor_counts(x) 4. ├─base::as.data.frame(table(x, useNA = "always"), stringsAsFactors = FALSE) 5. └─base::as.data.frame.table(table(x, useNA = "always"), 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) [ FAIL 4 | WARN 0 | SKIP 0 | PASS 1185 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [9s] ERROR Error(s) in re-building vignettes: --- re-building 'diagnostics.Rmd' using rmarkdown Quitting from diagnostics.Rmd:284-290 [audit-transform-factor] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `as.data.frame.integer()`: ! row names contain missing values --- Backtrace: ▆ 1. └─tidyaudit::audit_transform(...) 2. └─tidyaudit:::.audit_transform_diagnostics(...) 3. └─tidyaudit:::.factor_counts(x) 4. ├─base::as.data.frame(table(x, useNA = "always"), stringsAsFactors = FALSE) 5. └─base::as.data.frame.table(table(x, useNA = "always"), 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: processing vignette 'diagnostics.Rmd' failed with diagnostics: row names contain missing values --- failed re-building 'diagnostics.Rmd' --- re-building 'tidyaudit.Rmd' using rmarkdown --- finished re-building 'tidyaudit.Rmd' SUMMARY: processing the following file failed: 'diagnostics.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... [7s] OK * DONE Status: 2 ERRORs