Running 'tests.R' [3s]
  Running 'testthat.R' [243s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(stepR)
  Successfully loaded stepR package version 2.1-1.
  Several new functions are added in version 2.0-0. Some older functions are deprecated (still working) and may be defunct in a later version. Please read the documentation for more details.
  > 
  > test_check("stepR")
  == Skipped tests ===============================================================
  * On CRAN (9)
  
  == Failed tests ================================================================
  -- Error (test-stepFit.R:427:3): argument q is tested and works if it is given --
  Error: Failed to save to cache ('D:\temp\Rtmpw7uPkB/.Rcache/stepR/1e751a7fd9b553a79484f573be18c847.Rcache'). The reason was: Error in base_save(file = fh, object, compress = compress, ...): error writing to connection
  
  Backtrace:
       x
    1. +-testthat::expect_warning(ret <- stepFit(testy, stat = teststat)) test-stepFit.R:427:2
    2. | \-testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. |   +-testthat:::.capture(...)
    4. |   | \-base::withCallingHandlers(...)
    5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. \-stepR::stepFit(testy, stat = teststat)
    7.   \-stepR:::.RemoveAdditionalArgsCV(...)
    8.     \-stepR:::.critVal(...)
    9.       \-stepR:::.getVectorStat(...)
   10.         \-stepR:::.getStat(...)
   11.           \-stepR:::.saveMatrix(stat = stat, options = options, n = data$n)
   12.             \-stepR:::.saveRcache(...)
   13.               +-R.cache::saveCache(stat, key = key, dirs = dirs)
   14.               \-R.cache:::saveCache.default(stat, key = key, dirs = dirs)
   15.                 \-base::tryCatch(...)
   16.                   \-base:::tryCatchList(expr, classes, parentenv, handlers)
   17.                     \-base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   18.                       \-value[[3L]](cond)
   19.                         +-R.oo::throw(...)
   20.                         \-R.oo::throw.default(...)
   21.                           +-R.oo::throw(Exception(...))
   22.                           \-R.oo::throw.Exception(Exception(...))
  -- Error (test-stepFit.R:474:3): argument q is computed correctly --------------
  Error: error reading from connection
  Backtrace:
       x
    1. \-stepR::stepFit(testy, alpha = 0.1, stat = teststat) test-stepFit.R:474:2
    2.   \-stepR:::.RemoveAdditionalArgsCV(...)
    3.     \-stepR:::.critVal(...)
    4.       \-stepR:::.getVectorStat(...)
    5.         \-stepR:::.getStat(...)
    6.           \-stepR:::.saveMatrix(stat = stat, options = options, n = data$n)
    7.             \-stepR:::.saveRcache(...)
    8.               +-R.cache::loadCache(key = key, dirs = dirs)
    9.               \-R.cache:::loadCache.default(key = key, dirs = dirs)
   10.                 \-base::tryCatch(...)
   11.                   \-base:::tryCatchList(expr, classes, parentenv, handlers)
   12.                     \-base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   13.                       \-value[[3L]](cond)
  
  [ FAIL 2 | WARN 0 | SKIP 9 | PASS 24051 ]
  Error: Test failures
  Execution halted