Running 'testthat.R' [11s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > if(require(testthat))test_check("nc")
  Loading required package: testthat
  Loading required package: nc
  -- 1. Error: RE2 default/specified engine respected (@test-CRAN-df.R#8)  -------
  problem for subject column f: subject has class=factor and length=1 but should be a character vector with length>0
  Backtrace:
   1. nc::capture_first_df(...)
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  -- 2. Error: ICU default/specified engine respected (@test-CRAN-df.R#8)  -------
  problem for subject column f: subject has class=factor and length=1 but should be a character vector with length>0
  Backtrace:
   1. nc::capture_first_df(...)
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  -- 3. Error: PCRE default/specified engine respected (@test-CRAN-df.R#8)  ------
  problem for subject column f: subject has class=factor and length=1 but should be a character vector with length>0
  Backtrace:
   1. nc::capture_first_df(...)
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  -- 4. Error: capture_first_df does not use s arg for subject (@test-CRAN-subject
  problem for subject column x: subject has class=factor and length=1 but should be a character vector with length>0
  Backtrace:
   1. nc::capture_first_df(subject, x = list(s = "\\S+$"))
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  == testthat results  ===========================================================
  [ OK: 543 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 4 ]
  1. Error: RE2 default/specified engine respected (@test-CRAN-df.R#8) 
  2. Error: ICU default/specified engine respected (@test-CRAN-df.R#8) 
  3. Error: PCRE default/specified engine respected (@test-CRAN-df.R#8) 
  4. Error: capture_first_df does not use s arg for subject (@test-CRAN-subject.R#21) 
  
  Error: testthat unit tests failed
  Execution halted