Running ‘testthat.R’ [7s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > testthat::test_check("MADMMplasso")
  Loading required package: MADMMplasso
  Saving _problems/test-issue_53-89.R
  Saving _problems/test-issue_62-74.R
  Saving _problems/test-parallel-86.R
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 102 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-issue_53.R:83:1'): (code run outside of `test_that()`) ─────────
  Error in `unserialize(socklist[[n]])`: error reading from connection
  Backtrace:
      ▆
   1. └─MADMMplasso::MADMMplasso(...) at test-issue_53.R:83:1
   2.   └─foreach(i = 1:nlambda) %dopar% ...
   3.     └─e$fun(obj, substitute(ex), parent.frame(), e$data)
   4.       └─parallel::clusterApplyLB(cl, argsList, evalWrapper)
   5.         └─parallel:::dynamicClusterApply(cl, fun, length(x), argfun)
   6.           └─parallel:::recvOneResult(cl)
   7.             ├─parallel::recvOneData(cl)
   8.             └─parallel:::recvOneData.SOCKcluster(cl)
   9.               └─base::unserialize(socklist[[n]])
  ── Error ('test-issue_62.R:68:1'): (code run outside of `test_that()`) ─────────
  Error in `unserialize(socklist[[n]])`: error reading from connection
  Backtrace:
      ▆
   1. └─MADMMplasso::MADMMplasso(...) at test-issue_62.R:68:1
   2.   └─foreach(i = 1:nlambda) %dopar% ...
   3.     └─e$fun(obj, substitute(ex), parent.frame(), e$data)
   4.       └─parallel::clusterApplyLB(cl, argsList, evalWrapper)
   5.         └─parallel:::dynamicClusterApply(cl, fun, length(x), argfun)
   6.           └─parallel:::recvOneResult(cl)
   7.             ├─parallel::recvOneData(cl)
   8.             └─parallel:::recvOneData.SOCKcluster(cl)
   9.               └─base::unserialize(socklist[[n]])
  ── Error ('test-parallel.R:78:3'): (code run outside of `test_that()`) ─────────
  Error in `unserialize(socklist[[n]])`: error reading from connection
  Backtrace:
       ▆
    1. └─MADMMplasso (local) mad_wrap(legacy = TRUE, cl = r_cl, pal = FALSE) at test-parallel.R:96:3
    2.   ├─base::suppressMessages(...) at test-parallel.R:78:3
    3.   │ └─base::withCallingHandlers(...)
    4.   └─MADMMplasso::MADMMplasso(...)
    5.     └─foreach(i = 1:nlambda) %dopar% ...
    6.       └─e$fun(obj, substitute(ex), parent.frame(), e$data)
    7.         └─parallel::clusterApplyLB(cl, argsList, evalWrapper)
    8.           └─parallel:::dynamicClusterApply(cl, fun, length(x), argfun)
    9.             └─parallel:::recvOneResult(cl)
   10.               ├─parallel::recvOneData(cl)
   11.               └─parallel:::recvOneData.SOCKcluster(cl)
   12.                 └─base::unserialize(socklist[[n]])
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 102 ]
  Error:
  ! Test failures.
  Warning messages:
  1: In for (i in 1L:d2) { : closing unused connection 6 (<-localhost:11974)
  2: In for (i in 1L:d2) { : closing unused connection 5 (<-localhost:11974)
  Execution halted