Running ‘testthat.R’ [17s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("nc")
  Loading required package: nc
  ── 1. Failure: PCRE error for factor column (@test-CRAN-df.R#243)  ─────────────
  `{ ... }` threw an error with unexpected message.
  Expected match: "problem for subject column foo: Error in stop_for_subject(subject.vec): subject.vec has class=factor and length=1 but should be a character vector with length>0"
  Actual message: "problem for subject column foo: Error in stop_for_na(make.na): subject 1 did not match regex below; to output missing rows use nomatch.error=FALSE\n(sars)\n"
  Backtrace:
    1. testthat::expect_error(...)
    6. nc::capture_first_df(data.frame(foo = "bar"), foo = list(baz = "sars"))
    7. base::tryCatch(...)
    8. base:::tryCatchList(expr, classes, parentenv, handlers)
    9. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10. value[[3L]](cond)
  
  ── 2. Failure: RE2 error for factor column (@test-CRAN-df.R#243)  ──────────────
  `{ ... }` threw an error with unexpected message.
  Expected match: "problem for subject column foo: Error in stop_for_subject(subject.vec): subject.vec has class=factor and length=1 but should be a character vector with length>0"
  Actual message: "problem for subject column foo: Error in stop.fun(missing.match): subject 1 did not match regex below; to output missing rows use nomatch.error=FALSE\n(sars)\n"
  Backtrace:
    1. testthat::expect_error(...)
    6. nc::capture_first_df(data.frame(foo = "bar"), foo = list(baz = "sars"))
    7. base::tryCatch(...)
    8. base:::tryCatchList(expr, classes, parentenv, handlers)
    9. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10. value[[3L]](cond)
  
  ── 3. Failure: ICU error for factor column (@test-CRAN-df.R#243)  ──────────────
  `{ ... }` threw an error with unexpected message.
  Expected match: "problem for subject column foo: Error in stop_for_subject(subject.vec): subject.vec has class=factor and length=1 but should be a character vector with length>0"
  Actual message: "problem for subject column foo: Error in stop.fun(missing.match): subject 1 did not match regex below; to output missing rows use nomatch.error=FALSE\n(sars)\n"
  Backtrace:
    1. testthat::expect_error(...)
    6. nc::capture_first_df(data.frame(foo = "bar"), foo = list(baz = "sars"))
    7. base::tryCatch(...)
    8. base:::tryCatchList(expr, classes, parentenv, handlers)
    9. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10. value[[3L]](cond)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 518 | SKIPPED: 0 | WARNINGS: 3 | FAILED: 3 ]
  1. Failure: PCRE error for factor column (@test-CRAN-df.R#243) 
  2. Failure: RE2 error for factor column (@test-CRAN-df.R#243) 
  3. Failure: ICU error for factor column (@test-CRAN-df.R#243) 
  
  Error: testthat unit tests failed
  Execution halted