Running ‘testthat.R’ [52s/82s]
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?
  > #
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > library(testthat)
  > library(datawizard)
  > 
  > test_check("datawizard")
  Could not convert values into `NA` for a factor or character variable.
    To do this, `na` needs to be a character vector, or a list that contains
    character vector elements.
  Could not convert values into `NA` for a numeric variable.
    To do this, `na` needs to be a numeric vector, or a list that contains
    numeric vector elements.
  Variables of class `logical` can't be recoded and remain unchanged.
  Joining, by = ""
  
  Loading required package: poorman
  
    I'd seen my father. He was a poor man, and I watched him do astonishing things.
      - Sidney Poitier
  
  Attaching package: 'poorman'
  
  The following objects are masked from 'package:testthat':
  
      %>%, matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  
  Attaching package: 'tidyr'
  
  The following objects are masked from 'package:poorman':
  
      %>%, all_of, any_of, contains, ends_with, everything, last_col,
      matches, num_range, pivot_longer, pivot_wider, replace_na,
      starts_with, unite
  
  The following object is masked from 'package:testthat':
  
      matches
  
  [ FAIL 1 | WARN 7 | SKIP 27 | PASS 1118 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (27)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-convert_to_na.R:90'): convert_to_na other classes ──────────────
  Error in `charToDate(x)`: character string is not in a standard unambiguous format
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-convert_to_na.R:90:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─datawizard::convert_to_na(d, na = list(3, "c", TRUE, "2022-01-02"))
    8. └─datawizard:::convert_to_na.data.frame(...)
    9.   └─base::lapply(...)
   10.     ├─datawizard (local) FUN(X[[i]], ...)
   11.     └─datawizard:::convert_to_na.Date(X[[i]], ...)
   12.       ├─base::which(x %in% as.Date(na))
   13.       ├─x %in% as.Date(na)
   14.       ├─base::as.Date(na)
   15.       └─base::as.Date.character(na)
   16.         └─base (local) charToDate(x)
  
  [ FAIL 1 | WARN 7 | SKIP 27 | PASS 1118 ]
  Deleting unused snapshots:
  • format_text.md
  Error: Test failures
  Execution halted