Running ‘testthat.R’ [48s/59s]
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