Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [12s/17s]
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 2 | WARN 1 | SKIP 0 | PASS 16 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-files.R:22:3'): `make_tests_shells_file()` and `make_tests_shells_pkg()` work ──
  <usethis_error/error/condition>
  Error: Paths must be relative to the active project
  Backtrace:
       ▆
    1. ├─base::replicate(...) at test-files.R:22:2
    2. │ └─base::sapply(...)
    3. │   └─base::lapply(X = X, FUN = FUN, ...)
    4. │     └─exampletestr (local) FUN(X[[i]], ...)
    5. │       └─exampletestr::make_tests_shells_file("R/detect.R", pkg_dir, open = FALSE)
    6. │         ├─withr::with_options(...)
    7. │         │ └─base::force(code)
    8. │         ├─usethis::ui_info("Wrote {usethis::ui_path(usethis::proj_path(test_file_name),\n                               usethis::proj_path())}.")
    9. │         │ └─glue::glue(x, .envir = .envir)
   10. │         │   └─glue::glue_data(...)
   11. │         ├─usethis::ui_path(usethis::proj_path(test_file_name), usethis::proj_path())
   12. │         │ └─fs::is_dir(x)
   13. │         │   └─fs::file_info(path, follow = follow)
   14. │         │     └─fs::path_expand(path)
   15. │         └─usethis::proj_path(test_file_name)
   16. │           └─usethis::ui_stop("Paths must be relative to the active project")
   17. └─glue (local) `<fn>`("usethis::ui_path(usethis::proj_path(test_file_name),\nusethis::proj_path())")
   18.   ├─.transformer(expr, env) %||% .null
   19.   └─glue (local) .transformer(expr, env)
   20.     └─base::eval(parse(text = text, keep.source = FALSE), envir)
   21.       └─base::eval(parse(text = text, keep.source = FALSE), envir)
  ── Error ('test-functions.R:43:3'): `make_tests_shell_fun()` works ─────────────
  <usethis_error/error/condition>
  Error: Paths must be relative to the active project
  Backtrace:
       ▆
    1. ├─exampletestr::make_test_shell_fun(...) at test-functions.R:43:2
    2. │ ├─withr::with_options(...)
    3. │ │ └─base::force(code)
    4. │ ├─usethis::ui_info("Wrote {usethis::ui_path(usethis::proj_path(test_file_name),\n                               usethis::proj_path())}.")
    5. │ │ └─glue::glue(x, .envir = .envir)
    6. │ │   └─glue::glue_data(...)
    7. │ ├─usethis::ui_path(usethis::proj_path(test_file_name), usethis::proj_path())
    8. │ │ └─fs::is_dir(x)
    9. │ │   └─fs::file_info(path, follow = follow)
   10. │ │     └─fs::path_expand(path)
   11. │ └─usethis::proj_path(test_file_name)
   12. │   └─usethis::ui_stop("Paths must be relative to the active project")
   13. └─glue (local) `<fn>`("usethis::ui_path(usethis::proj_path(test_file_name),\nusethis::proj_path())")
   14.   ├─.transformer(expr, env) %||% .null
   15.   └─glue (local) .transformer(expr, env)
   16.     └─base::eval(parse(text = text, keep.source = FALSE), envir)
   17.       └─base::eval(parse(text = text, keep.source = FALSE), envir)
  
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 16 ]
  Error: Test failures
  Execution halted