Running 'spelling.R'
  Running 'testthat.R'
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")
  + }
  Error : [EBUSY] Failed to remove 'C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/exampletestr/tmp/Rtmp0e8ftr/tmpkg/man/str_detect.Rd': resource busy or locked
  Error : [EBUSY] Failed to remove 'C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/exampletestr/tmp/Rtmp0e8ftr/file2484116b394c': resource busy or locked
  Error : [EBUSY] Failed to remove 'C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/exampletestr/tmp/Rtmp0e8ftr/file24841145c11': resource busy or locked
  Error : [EBUSY] Failed to remove 'C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/exampletestr/tmp/Rtmp0e8ftr/tmpkg/man/str_detect.Rd': resource busy or locked
  Error : [EBUSY] Failed to remove 'C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/exampletestr/tmp/Rtmp0e8ftr/tmpkg/DESCRIPTION': resource busy or locked
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-example-extraction.R:30:3): `extract_examples()` works ──────────
  Error: Cannot open file for writing:
  * 'C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\exampletestr\tmp\Rtmp0e8ftr\tmpkg\man\str_detect.Rd'
  Backtrace:
      █
   1. └─readr::write_lines(...) test-example-extraction.R:30:2
   2.   └─vroom::vroom_write_lines(...)
   3.     └─vroom::vroom_write(...)
   4.       └─vroom:::vroom_write_(...)
  ── Error (test-files.R:64:3): `make_tests_shells_file()` and `make_tests_shells_pkg()` work ──
  Error: Cannot open file for writing:
  * 'C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\exampletestr\tmp\Rtmp0e8ftr\tmpkg\tests\testthat\test-detect.R'
  Backtrace:
      █
   1. └─exampletestr::make_tests_shells_pkg(pkg_dir, overwrite = TRUE) test-files.R:64:2
   2.   ├─withr::with_options(...)
   3.   │ └─base::force(code)
   4.   └─purrr::map(...)
   5.     └─exampletestr:::.f(.x[[i]], ...)
   6.       └─readr::write_lines(combined, test_file_name)
   7.         └─vroom::vroom_write_lines(...)
   8.           └─vroom::vroom_write(...)
   9.             └─vroom:::vroom_write_(...)
  ── Error (test-utils.R:47:3): `check_for_DESCRIPTION()` works ──────────────────
  Error: [EBUSY] Failed to remove 'C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/exampletestr/tmp/Rtmp0e8ftr/tmpkg/DESCRIPTION': resource busy or locked
  Backtrace:
      █
   1. └─fs::file_delete(paste0(pkg_dir, "/DESCRIPTION")) test-utils.R:47:2
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 22 ]
  Error: Test failures
  Execution halted