Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(whereami)
  > 
  > test_check("whereami")
  -- 1. Error: source calls: direct call (@test-source.R#7)  ---------------------
  invalid regular expression 'd:\RCompile\CRANpkg\local\3.6\whereami.Rcheck\tests\testthat', reason 'Invalid back reference'
  Backtrace:
   1. testthat::expect_true(...)
   5. whereami::whereami(path_expand = FALSE)
   6. whereami:::path_reduce(src)
   7. base::gsub(normalizePath(getwd()), ".", src)
  
  -- 2. Error: source calls: direct call (@test-source.R#7)  ---------------------
  object 'ret' not found
  Backtrace:
   1. testthat::expect_true(...)
   5. whereami::whereami(path_expand = FALSE)
  
  -- 3. Error: source calls: print (@test-source.R#15)  --------------------------
  invalid regular expression 'd:\RCompile\CRANpkg\local\3.6\whereami.Rcheck\tests\testthat', reason 'Invalid back reference'
  Backtrace:
    1. testthat::expect_output(print(whereami::whereami()), regexp = "Running")
   11. whereami::whereami()
   12. whereami:::path_reduce(src)
   13. base::gsub(normalizePath(getwd()), ".", src)
  
  -- 4. Error: source calls: print (@test-source.R#15)  --------------------------
  object 'ret' not found
  Backtrace:
    1. testthat::expect_output(print(whereami::whereami()), regexp = "Running")
   11. whereami::whereami()
  
  -- 5. Error: (unknown) (@test-source.R#5)  -------------------------------------
  invalid regular expression 'd:\RCompile\CRANpkg\local\3.6\whereami.Rcheck\tests\testthat', reason 'Invalid back reference'
  Backtrace:
   1. testthat::describe(...)
   2. [ base::eval(...) ] with 1 more call
   5. whereami::whereami()
   6. whereami:::path_reduce(src)
   7. base::gsub(normalizePath(getwd()), ".", src)
  
  -- 6. Error: (unknown) (@test-source.R#5)  -------------------------------------
  object 'ret' not found
  Backtrace:
   1. testthat::describe(...)
   2. [ base::eval(...) ] with 1 more call
   5. whereami::whereami()
  
  == testthat results  ===========================================================
  [ OK: 3 | SKIPPED: 5 | WARNINGS: 4 | FAILED: 6 ]
  1. Error: source calls: direct call (@test-source.R#7) 
  2. Error: source calls: direct call (@test-source.R#7) 
  3. Error: source calls: print (@test-source.R#15) 
  4. Error: source calls: print (@test-source.R#15) 
  5. Error: (unknown) (@test-source.R#5) 
  6. Error: (unknown) (@test-source.R#5) 
  
  Error: testthat unit tests failed
  Execution halted