Running 'testthat.R' [30s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(cliapp)
  > 
  > ## Run the tests in fancy mode and non-fancy mode as well
  > ## Also, run them in latin1 encoding as well, this is for Unix,
  > ## because Windows encoding names are different.
  > 
  > withr::with_options(
  +   list(cli.unicode = FALSE),
  +   test_check("cliapp")
  + )
  -- 1. Error: events are properly generated (@test-subprocess.R#25)  ------------
  'match' requires vector arguments
  Backtrace:
    1. base::withCallingHandlers(rs$run(do), cliapp_message = handler)
    2. rs$run(do)
    3. callr:::rs_run(self, private, func, args)
    4. callr:::rs_run_with_output(self, private, func, args)
    9. callr:::rs__handle_condition(msg$message)
   13. callr:::default_handler(cond)
   14. cliapp:::val(x)
   15. cliapp:::cli_server_default(msg)
   16. cliapp:::cli_server_default_safe(msg)
  
  -- 2. Error: subprocess with default handler (@test-subprocess.R#53)  ----------
  callr subprocess failed: 'match' requires vector arguments
  Backtrace:
   1. withr::with_options(...)
   3. rs$run(do)
   4. callr:::rs_run(self, private, func, args)
   5. throw(res$error)
  
  -- 3. Failure: output in child process (@test-subprocess.R#117)  ---------------
  result$result not identical to "foobar".
  target is NULL, current is character
  
  -- 4. Failure: output in child process (@test-subprocess.R#118)  ---------------
  result$error is not null.
  
  -- 5. Error: user's override  --------------------------------------------------
  'match' requires vector arguments
  Backtrace:
  
  == testthat results  ===========================================================
  [ OK: 114 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 5 ]
  1. Error: events are properly generated (@test-subprocess.R#25) 
  2. Error: subprocess with default handler (@test-subprocess.R#53) 
  3. Failure: output in child process (@test-subprocess.R#117) 
  4. Failure: output in child process (@test-subprocess.R#118) 
  5. Error: user's override 
  
  Error: testthat unit tests failed
  Execution halted