Running 'testthat.R' [230s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(mkin)
  > 
  > test_check("mkin")
  Error in `source_dir()`:
  ! Failed to evaluate './setup_script.R'.
  Caused by error in `unserialize()`:
  ! error reading from connection
  Backtrace:
       ▆
    1. ├─testthat::test_check("mkin")
    2. │ └─testthat::test_dir(...)
    3. │   └─testthat:::test_files(...)
    4. │     └─testthat:::test_files_serial(...)
    5. │       └─testthat:::test_files_setup_state(...)
    6. │         └─testthat::source_test_setup(".", env)
    7. │           └─testthat::source_dir(path, "^setup.*\\.[rR]$", env = env, wrap = FALSE)
    8. │             └─base::lapply(...)
    9. │               └─testthat (local) FUN(X[[i]], ...)
   10. │                 └─testthat::source_file(...)
   11. │                   ├─base::withCallingHandlers(...)
   12. │                   └─base::eval(exprs, env)
   13. │                     └─base::eval(exprs, env)
   14. │                       ├─base::suppressWarnings(...) at ./setup_script.R:30:1
   15. │                       │ └─base::withCallingHandlers(...)
   16. │                       └─mkin::mmkin(...)
   17. │                         ├─base::system.time(...)
   18. │                         └─parallel::parLapply(cluster, as.list(1:n.fits), fit_function)
   19. │                           ├─base::do.call(...)
   20. │                           └─parallel::clusterApply(...)
   21. │                             └─parallel:::staticClusterApply(cl, fun, length(x), argfun)
   22. │                               └─base::lapply(cl[1:jobs], recvResult)
   23. │                                 └─parallel (local) FUN(X[[i]], ...)
   24. │                                   ├─parallel::recvData(con)
   25. │                                   └─parallel:::recvData.SOCKnode(con)
   26. │                                     └─base::unserialize(node$con)
   27. └─base::.handleSimpleError(...)
   28.   └─testthat (local) h(simpleError(msg, call))
   29.     └─cli::cli_abort(...)
   30.       └─rlang::abort(...)
  Timing stopped at: 0.21 0.03 130.2