Running 'spelling.R' [0s]
  Running 'testthat.R' [23s]
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 'D:/temp/RtmpQ7TlXU/tmpkg/man/str_detect.Rd': resource busy or locked
  Error : [EBUSY] Failed to remove 'D:/temp/RtmpQ7TlXU/file1dea01c7431c4': resource busy or locked
  Error : [EBUSY] Failed to remove 'D:/temp/RtmpQ7TlXU/file1dea015b5288f': resource busy or locked
  Error : [EBUSY] Failed to remove 'D:/temp/RtmpQ7TlXU/file1dea01c15155e': resource busy or locked
  Error : [EBUSY] Failed to remove 'D:/temp/RtmpQ7TlXU/tmpkg/DESCRIPTION': resource busy or locked
  == Skipped tests ===============================================================
  * On CRAN (1)
  
  == Failed tests ================================================================
  -- Error (test-example-extraction.R:30:3): `extract_examples()` works ----------
  Error: Cannot open file for writing:
  * 'D:\temp\RtmpQ7TlXU\tmpkg\man\str_detect.Rd'
  Backtrace:
      x
   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-utils.R:47:3): `check_for_DESCRIPTION()` works ------------------
  Error: [EBUSY] Failed to remove 'D:/temp/RtmpQ7TlXU/tmpkg/DESCRIPTION': resource busy or locked
  Backtrace:
      x
   1. \-fs::file_delete(paste0(pkg_dir, "/DESCRIPTION")) test-utils.R:47:2
  
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 23 ]
  Error: Test failures
  Execution halted