Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [16s/21s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(exampletestr)
  > 
  > get_os <- function() {
  +   sysinf <- Sys.info()
  +   if (!is.null(sysinf)) {
  +     os <- sysinf["sysname"]
  +     if (os == "Darwin") {
  +       os <- "osx"
  +     }
  +   } else { ## mystery machine
  +     os <- .Platform$OS.type
  +     if (grepl("^darwin", R.version$os)) {
  +       os <- "osx"
  +     }
  +     if (grepl("linux-gnu", R.version$os)) {
  +       os <- "linux"
  +     }
  +   }
  +   if (os == "osx") os <- "mac"
  +   tolower(os)
  + }
  > 
  > if (get_os() != "mac" || Sys.getenv("NOT_CRAN") == "true") {
  +   test_check("exampletestr")
  + }
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 27 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-example-extraction.R:15:3'): `extract_examples()` works ──────
  `extract_examples("detect", tempdir(check = TRUE))` threw an error with unexpected message.
  Expected match: "Path .+ does not appear to be inside a project or package."
  Actual message: "✖ Path '/home/hornik/tmp/scratch/RtmpkU0F8d/' does not appear to be\n  inside a project or package.\nℹ Read more in the help for `usethis::proj_get()`."
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-example-extraction.R:15:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─exampletestr:::extract_examples("detect", tempdir(check = TRUE))
    7.   └─usethis::local_project(path = pkg_dir, quiet = TRUE)
    8.     └─usethis::proj_set(path = path, force = force)
    9.       └─usethis:::ui_abort(...)
   10.         └─cli::cli_abort(...)
   11.           └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 27 ]
  Error: Test failures
  Execution halted