Running 'testthat.R' [14s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(compstatr)
  > 
  > test_check("compstatr")
  == Skipped tests ===============================================================
  * On CRAN (3)
  
  == Failed tests ================================================================
  -- Error (test_load_year.R:55:1): (code run outside of `test_that()`) ----------
  Error: [EBUSY] Failed to remove 'D:/temp/Rtmp27f4H9/data/december2017.csv': resource busy or locked
  Backtrace:
      x
   1. \-fs::file_delete(paste0(tmpdir, "/data/december2017.csv")) test_load_year.R:55:0
  -- Failure (test_prep_year.R:21:3): correctly specified functions execute without error --
  `cs_prep_year(path = paste0(tmpdir, "/data/"))` threw an error.
  Message: There are too many files in the specified folder. Edit crime files in yearly batches of 12 monthly files.
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(...) test_prep_year.R:21:2
   2. | \-testthat:::quasi_capture(...)
   3. |   +-testthat:::.capture(...)
   4. |   | \-base::withCallingHandlers(...)
   5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. \-compstatr::cs_prep_year(path = paste0(tmpdir, "/data/"))
  -- Failure (test_prep_year.R:35:3): correctly specified functions execute without error --
  `cs_prep_year(path = paste0(tmpdir, "/data/"))` threw an error.
  Message: There are too many files in the specified folder. Edit crime files in yearly batches of 12 monthly files.
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(...) test_prep_year.R:35:2
   2. | \-testthat:::quasi_capture(...)
   3. |   +-testthat:::.capture(...)
   4. |   | \-base::withCallingHandlers(...)
   5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. \-compstatr::cs_prep_year(path = paste0(tmpdir, "/data/"))
  -- Error (test_prep_year.R:54:1): (code run outside of `test_that()`) ----------
  Error: There are too many files in the specified folder. Edit crime files in yearly batches of 12 monthly files.
  Backtrace:
      x
   1. \-compstatr::cs_prep_year(path = paste0(tmpdir, "/data/"), verbose = TRUE) test_prep_year.R:54:0
  
  [ FAIL 4 | WARN 1 | SKIP 3 | PASS 219 ]
  Error: Test failures
  Execution halted