Running ‘testthat.R’ [5s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tryCatchLog)
  Using futile.logger for logging...
  > 
  > 
  > 
  > # Set to something like [1] "en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/de_DE.UTF-8"
  > # to ensure english error messages
  > # DISABLED - DOES NOT WORK (AT LEAST NOT ON OSX)!
  > # Sys.setlocale("LC_ALL", "en_US.UTF-8")
  > # Sys.getlocale()
  > 
  > # https://stackoverflow.com/questions/47977951/how-to-ensure-english-error-messages-in-testthat-unit-tests
  > Sys.setenv("LANGUAGE" = "EN")  # work-around to always create english R (error) messages
  > 
  > 
  > 
  > test_check("tryCatchLog")
  ══ Failed tests ═════════════════════════════════════════════════════════════════════════════════════════════════════════════════
  ── Error (test_build_log_entry.R:69:3): stack trace is correct ─────────────────
  Error: invalid 'x' type in 'x && y'
  Backtrace:
      █
   1. └─testthat::expect_equal(...) test_build_log_entry.R:69:2
   2.   ├─testthat::compare(act$val, exp$val, ...)
   3.   └─testthat:::compare.character(act$val, exp$val, ...)
  ── Failure (test_build_log_output.R:52:3): log output is correct ───────────────
  `out2` not equal to `expected2`.
  1/1 mismatches
  x[1]: "[ERROR] msg\n\nCompact call stack:\n  1 tryLog(log(\"abc\"))\n  2 tryLog.R#49: tryCatchLog(expr = expr, dump.errors.to.fil
  x[1]: e = dump.errors.to.file, error = function(e) {\n  3 tryCatchLog.R#135: tryCatch(withCallingHandlers(expr, error = function(
  x[1]: e) {\n\nFull call stack:\n  1 tryLog(log(\"abc\"))\n  2 tryLog.R#49: tryCatchLog(expr = expr, dump.errors.to.file = dump.er
  x[1]: rors.to.file, error = function(e) {\n        msg <- conditi\n  3 tryCatchLog.R#135: tryCatch(withCallingHandlers(expr, erro
  x[1]: r = function(e) {\n        call.stack <- sys.calls()\n        {\n       \n  4 tryCatchList(expr, classes, parentenv, han...
  y[1]: "[ERROR] msg\n\nCompact call stack:\n  1 tryLog(log(\"abc\"))\n  2 tryLog.R#49: tryCatchLog(expr = expr, dump.errors.to.fil
  y[1]: e = dump.errors.to.file, error = function(e) {\n  3 tryCatchLog.R#135: tryCatch(withCallingHandlers(expr, error = function(
  y[1]: e) {\n\nFull call stack:\n  1 tryLog(log(\"abc\"))\n  2 tryLog.R#49: tryCatchLog(expr = expr, dump.errors.to.file = dump.er
  y[1]: rors.to.file, error = function(e) {\n        msg <- condit\n  3 tryCatchLog.R#135: tryCatch(withCallingHandlers(expr, error
  y[1]:  = function(e) {\n        call.stack <- sys.calls()\n        {\n    \n  4 tryCatchList(expr, classes, parentenv, handler...
  include.full.call.stack = TRUE
  ── Failure (test_build_log_output.R:57:3): log output is correct ───────────────
  `out3` not equal to `expected2`.
  1/1 mismatches
  x[1]: "[ERROR] msg\n\nCompact call stack:\n  1 tryLog(log(\"abc\"))\n  2 tryLog.R#49: tryCatchLog(expr = expr, dump.errors.to.fil
  x[1]: e = dump.errors.to.file, error = function(e) {\n  3 tryCatchLog.R#135: tryCatch(withCallingHandlers(expr, error = function(
  x[1]: e) {\n\nFull call stack:\n  1 tryLog(log(\"abc\"))\n  2 tryLog.R#49: tryCatchLog(expr = expr, dump.errors.to.file = dump.er
  x[1]: rors.to.file, error = function(e) {\n        msg <- conditi\n  3 tryCatchLog.R#135: tryCatch(withCallingHandlers(expr, erro
  x[1]: r = function(e) {\n        call.stack <- sys.calls()\n        {\n       \n  4 tryCatchList(expr, classes, parentenv, han...
  y[1]: "[ERROR] msg\n\nCompact call stack:\n  1 tryLog(log(\"abc\"))\n  2 tryLog.R#49: tryCatchLog(expr = expr, dump.errors.to.fil
  y[1]: e = dump.errors.to.file, error = function(e) {\n  3 tryCatchLog.R#135: tryCatch(withCallingHandlers(expr, error = function(
  y[1]: e) {\n\nFull call stack:\n  1 tryLog(log(\"abc\"))\n  2 tryLog.R#49: tryCatchLog(expr = expr, dump.errors.to.file = dump.er
  y[1]: rors.to.file, error = function(e) {\n        msg <- condit\n  3 tryCatchLog.R#135: tryCatch(withCallingHandlers(expr, error
  y[1]:  = function(e) {\n        call.stack <- sys.calls()\n        {\n    \n  4 tryCatchList(expr, classes, parentenv, handler...
  default value of include.full.call.stack
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 401 ]
  Error: Test failures
  Execution halted