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
  -- ERROR (test-CRAN-df.R:8:3): RE2 default/specified engine respected ----------
  Error: problem for subject column f: Error in stop_for_subject(subject): subject has class=factor and length=1 but should be a character vector with length>0
  
  Backtrace:
      x
   1. \-nc::capture_first_df(...) test-CRAN-df.R:8:2
   2.   \-base::tryCatch(...)
   3.     \-base:::tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  
  -- ERROR (test-CRAN-df.R:8:3): ICU default/specified engine respected ----------
  Error: problem for subject column f: Error in stop_for_subject(subject): subject has class=factor and length=1 but should be a character vector with length>0
  
  Backtrace:
      x
   1. \-nc::capture_first_df(...) test-CRAN-df.R:8:2
   2.   \-base::tryCatch(...)
   3.     \-base:::tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  
  -- ERROR (test-CRAN-df.R:8:3): PCRE default/specified engine respected ---------
  Error: problem for subject column f: Error in stop_for_subject(subject): subject has class=factor and length=1 but should be a character vector with length>0
  
  Backtrace:
      x
   1. \-nc::capture_first_df(...) test-CRAN-df.R:8:2
   2.   \-base::tryCatch(...)
   3.     \-base:::tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  
  -- ERROR (test-CRAN-subject.R:21:3): capture_first_df does not use s arg for sub
  Error: problem for subject column x: Error in stop_for_subject(subject): subject has class=factor and length=1 but should be a character vector with length>0
  
  Backtrace:
      x
   1. \-nc::capture_first_df(subject, x = list(s = "\\S+$")) test-CRAN-subject.R:21:2
   2.   \-base::tryCatch(...)
   3.     \-base:::tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  
  == testthat results  ===========================================================
  ERROR (test-CRAN-df.R:8:3): RE2 default/specified engine respected
  ERROR (test-CRAN-df.R:8:3): ICU default/specified engine respected
  ERROR (test-CRAN-df.R:8:3): PCRE default/specified engine respected
  ERROR (test-CRAN-subject.R:21:3): capture_first_df does not use s arg for subject
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 543 ]
  Error: Test failures
  Execution halted