Running 'testthat.R' [1s]
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.5\whereami.Rcheck\tests\testthat', reason 'Invalid back reference'
  1: testthat::expect_true(inherits(whereami::whereami(path_expand = FALSE), "whereami")) at testthat/test-source.R:7
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: inherits(whereami::whereami(path_expand = FALSE), "whereami")
  5: whereami::whereami(path_expand = FALSE)
  6: path_reduce(src)
  7: gsub(normalizePath(getwd()), ".", src)
  
  -- 2. Error: source calls: direct call (@test-source.R#7)  ---------------------
  object 'ret' not found
  1: testthat::expect_true(inherits(whereami::whereami(path_expand = FALSE), "whereami")) at testthat/test-source.R:7
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: inherits(whereami::whereami(path_expand = FALSE), "whereami")
  5: whereami::whereami(path_expand = FALSE)
  
  -- 3. Error: source calls: print (@test-source.R#15)  --------------------------
  invalid regular expression 'd:\RCompile\CRANpkg\local\3.5\whereami.Rcheck\tests\testthat', reason 'Invalid back reference'
  1: testthat::expect_output(print(whereami::whereami()), regexp = "Running") at testthat/test-source.R:15
  2: quasi_capture(enquo(object), label, capture_output, width = width)
  3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(.quo), get_env(.quo))
  10: print(whereami::whereami())
  11: whereami::whereami()
  12: path_reduce(src)
  13: gsub(normalizePath(getwd()), ".", src)
  
  -- 4. Error: source calls: print (@test-source.R#15)  --------------------------
  object 'ret' not found
  1: testthat::expect_output(print(whereami::whereami()), regexp = "Running") at testthat/test-source.R:15
  2: quasi_capture(enquo(object), label, capture_output, width = width)
  3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(.quo), get_env(.quo))
  10: print(whereami::whereami())
  11: whereami::whereami()
  
  -- 5. Error: (unknown) (@test-source.R#5)  -------------------------------------
  invalid regular expression 'd:\RCompile\CRANpkg\local\3.5\whereami.Rcheck\tests\testthat', reason 'Invalid back reference'
  1: testthat::describe("source calls", {
         it("direct call", {
             testthat::expect_true(inherits(whereami::whereami(path_expand = FALSE), "whereami"))
         })
         it("path expand", {
             testthat::expect_true(inherits(whereami::whereami(path_expand = TRUE), "whereami"))
         })
         it("print", {
             testthat::expect_output(print(whereami::whereami()), regexp = "Running")
         })
         whereami::cat_where(whereami::whereami())
     }) at testthat/test-source.R:5
  2: eval(substitute(code), describe_environment)
  3: eval(substitute(code), describe_environment)
  4: whereami::cat_where(whereami::whereami()) at testthat/test-source.R:18
  5: whereami::whereami()
  6: path_reduce(src)
  7: gsub(normalizePath(getwd()), ".", src)
  
  -- 6. Error: (unknown) (@test-source.R#5)  -------------------------------------
  object 'ret' not found
  1: testthat::describe("source calls", {
         it("direct call", {
             testthat::expect_true(inherits(whereami::whereami(path_expand = FALSE), "whereami"))
         })
         it("path expand", {
             testthat::expect_true(inherits(whereami::whereami(path_expand = TRUE), "whereami"))
         })
         it("print", {
             testthat::expect_output(print(whereami::whereami()), regexp = "Running")
         })
         whereami::cat_where(whereami::whereami())
     }) at testthat/test-source.R:5
  2: eval(substitute(code), describe_environment)
  3: eval(substitute(code), describe_environment)
  4: whereami::cat_where(whereami::whereami()) at testthat/test-source.R:18
  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