Running 'testthat.R' [9s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(scriptexec)
  > 
  > test_check("scriptexec")
  -- 1. Failure: public api: error exit code (@test_api_stability.R#23)  ---------
  `output <- scriptexec::execute("exit 1")` did not produce any warnings.
  
  -- 2. Failure: public api: error exit code (@test_api_stability.R#24)  ---------
  output$status not equal to 1.
  1/1 mismatches
  [1] 0 - 1 == -1
  
  -- 3. Failure: public api: args as parameter 2 as text (@test_api_stability.R#34
  `found` isn't true.
  
  -- 4. Failure: public api: args as parameter 2 as vector (@test_api_stability.R#
  `found` isn't true.
  
  -- 5. Failure: public api: args as named parameter (@test_api_stability.R#54)  -
  `found` isn't true.
  
  -- 6. Failure: public api: env vars as paramter 3 as text (@test_api_stability.R
  `found` not equal to TRUE.
  1 element mismatch
  
  -- 7. Failure: public api: env vars as paramter 3 as vector (@test_api_stability
  `found` not equal to TRUE.
  1 element mismatch
  
  -- 8. Failure: public api: env vars as named paramter (@test_api_stability.R#84)
  `found` not equal to TRUE.
  1 element mismatch
  
  -- 9. Failure: public api: all paramters (@test_api_stability.R#150)  ----------
  `found` not equal to TRUE.
  1 element mismatch
  
  -- 10. Failure: public api: all named paramters (@test_api_stability.R#173)  ---
  `found` not equal to TRUE.
  1 element mismatch
  
  -- 11. Failure: Examples: all examples (@test_examples.R#8)  -------------------
  grepl("command1", output$output) not equal to TRUE.
  1 element mismatch
  
  -- 12. Failure: Examples: all examples (@test_examples.R#9)  -------------------
  grepl("command2", output$output) not equal to TRUE.
  1 element mismatch
  
  -- 13. Failure: Examples: all examples (@test_examples.R#32)  ------------------
  grepl("TEST1 TEST2 TEST3", output$output) not equal to TRUE.
  1 element mismatch
  
  -- 14. Failure: Examples: all examples (@test_examples.R#35)  ------------------
  `output <- scriptexec::execute("exit 1")` did not produce any warnings.
  
  -- 15. Failure: Examples: all examples (@test_examples.R#36)  ------------------
  output$status not equal to 1.
  1/1 mismatches
  [1] 0 - 1 == -1
  
  -- 16. Failure: execute: cli arguments (@test_execute.R#34)  -------------------
  `found` isn't true.
  
  -- 17. Failure: execute: env vars (@test_execute.R#44)  ------------------------
  `found` isn't true.
  
  -- 18. Failure: execute: error exit code (@test_execute.R#48)  -----------------
  `output <- scriptexec::execute("exit 1")` did not produce any warnings.
  
  -- 19. Failure: execute: error exit code (@test_execute.R#49)  -----------------
  output$status not equal to 1.
  1/1 mismatches
  [1] 0 - 1 == -1
  
  -- 20. Failure: execute: error during invocation (@test_execute.R#75)  ---------
  output$status not equal to 1.
  1/1 mismatches
  [1] 0 - 1 == -1
  
  == testthat results  ===========================================================
  [ OK: 102 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 20 ]
  1. Failure: public api: error exit code (@test_api_stability.R#23) 
  2. Failure: public api: error exit code (@test_api_stability.R#24) 
  3. Failure: public api: args as parameter 2 as text (@test_api_stability.R#34) 
  4. Failure: public api: args as parameter 2 as vector (@test_api_stability.R#44) 
  5. Failure: public api: args as named parameter (@test_api_stability.R#54) 
  6. Failure: public api: env vars as paramter 3 as text (@test_api_stability.R#64) 
  7. Failure: public api: env vars as paramter 3 as vector (@test_api_stability.R#74) 
  8. Failure: public api: env vars as named paramter (@test_api_stability.R#84) 
  9. Failure: public api: all paramters (@test_api_stability.R#150) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted