Running ‘testthat.R’ [63s/86s]
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/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(ccar3)
  > 
  > test_check("ccar3")
  Loading required package: ggplot2
  Loading required package: lattice
  
   Permutation  1  out of  50  123456789
   Permutation  2  out of  50  123456789
   Permutation  3  out of  50  123456789
   Permutation  4  out of  50  123456789
   Permutation  5  out of  50  123456789
   Permutation  6  out of  50  123456789
   Permutation  7  out of  50  123456789
   Permutation  8  out of  50  123456789
   Permutation  9  out of  50  123456789
   Permutation  10  out of  50  123456789
   Permutation  11  out of  50  123456789
   Permutation  12  out of  50  123456789
   Permutation  13  out of  50  123456789
   Permutation  14  out of  50  123456789
   Permutation  15  out of  50  123456789
   Permutation  16  out of  50  123456789
   Permutation  17  out of  50  123456789
   Permutation  18  out of  50  123456789
   Permutation  19  out of  50  123456789
   Permutation  20  out of  50  123456789
   Permutation  21  out of  50  123456789
   Permutation  22  out of  50  123456789
   Permutation  23  out of  50  123456789
   Permutation  24  out of  50  123456789
   Permutation  25  out of  50  123456789
   Permutation  26  out of  50  123456789
   Permutation  27  out of  50  123456789
   Permutation  28  out of  50  123456789
   Permutation  29  out of  50  123456789
   Permutation  30  out of  50  123456789
   Permutation  31  out of  50  123456789
   Permutation  32  out of  50  123456789
   Permutation  33  out of  50  123456789
   Permutation  34  out of  50  123456789
   Permutation  35  out of  50  123456789
   Permutation  36  out of  50  123456789
   Permutation  37  out of  50  123456789
   Permutation  38  out of  50  123456789
   Permutation  39  out of  50  123456789
   Permutation  40  out of  50  123456789
   Permutation  41  out of  50  123456789
   Permutation  42  out of  50  123456789
   Permutation  43  out of  50  123456789
   Permutation  44  out of  50  123456789
   Permutation  45  out of  50  123456789
   Permutation  46  out of  50  123456789
   Permutation  47  out of  50  123456789
   Permutation  48  out of  50  123456789
   Permutation  49  out of  50  123456789
   Permutation  50  out of  50  123456789
  Estimating optimal shrinkage intensity lambda.var (variance vector): 1 
  
  Estimating optimal shrinkage intensity lambda (correlation matrix): 0.0479 
  
  Estimating optimal shrinkage intensity lambda.var (variance vector): 1 
  
  Estimating optimal shrinkage intensity lambda (correlation matrix): 0.0479 
  
  
  Attaching package: 'Matrix'
  
  The following objects are masked from 'package:pracma':
  
      expm, lu, tril, triu
  
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Initial backend setup failed with error:  63 simultaneous processes spawned 
  Attempting fallback PSOCK backend...
  PSOCK setup also failed:  63 simultaneous processes spawned 
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Initial backend setup failed with error:  63 simultaneous processes spawned 
  Attempting fallback PSOCK backend...
  PSOCK setup also failed:  63 simultaneous processes spawned 
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Error in fold 1: a dimension is zero
  Error in fold 2: a dimension is zero
  Error in fold 3: a dimension is zero
  Saving _problems/test-cca_group_rrr-79.R
  Initial backend setup failed with error:  63 simultaneous processes spawned 
  Attempting fallback PSOCK backend...
  PSOCK setup also failed:  63 simultaneous processes spawned 
  Initial backend setup failed with error:  63 simultaneous processes spawned 
  Attempting fallback PSOCK backend...
  PSOCK setup also failed:  63 simultaneous processes spawned 
  [1] "Done ADMM"
  Saving _problems/test-cca_rrr-70.R
  Initial backend setup failed with error:  63 simultaneous processes spawned 
  Attempting fallback PSOCK backend...
  PSOCK setup also failed:  63 simultaneous processes spawned 
  Initial backend setup failed with error:  63 simultaneous processes spawned 
  Attempting fallback PSOCK backend...
  PSOCK setup also failed:  63 simultaneous processes spawned 
  [1] "We have:"
  [1] 100   1   5
  [1] "--------------------------------------"
  [1] "Generating data ..."
  [1] "Number of non zeros is: 5"
  [1] "Data generated."
  [1] "--------------------------------------"
  
  iter: 10 delta: 0.001831906
  iter: 20 delta: 0.0002497733     ADMM converged in  28  iterations[1] "We have:"
  [1] 100   1   5
  [1] "--------------------------------------"
  [1] "Generating data ..."
  [1] "Number of non zeros is: 5"
  [1] "Data generated."
  [1] "--------------------------------------"
       ADMM converged in  9  iterations[1] "We have:"
  [1] 100   1   5
  [1] "--------------------------------------"
  [1] "Generating data ..."
  [1] "Number of non zeros is: 5"
  [1] "Data generated."
  [1] "--------------------------------------"
  [1] "We have:"
  [1] 100   1   5
  [1] "--------------------------------------"
  [1] "Generating data ..."
  [1] "Number of non zeros is: 5"
  [1] "Data generated."
  [1] "--------------------------------------"
  Initial backend setup failed with error:  63 simultaneous processes spawned 
  Attempting fallback PSOCK backend...
  PSOCK setup also failed:  63 simultaneous processes spawned 
  [ FAIL 2 | WARN 7 | SKIP 0 | PASS 112 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-cca_group_rrr.R:76:3'): cca_group computes the same solutions across solvers ──
  Error in `CVXR::Variable(p, q)`: Variable name "5" must be a string.
  Backtrace:
      ▆
   1. └─ccar3::cca_group_rrr(...) at test-cca_group_rrr.R:76:3
   2.   └─ccar3:::solve_group_rrr_cvxr(X, tilde_Y, groups, lambda, thresh_0 = thresh_0)
   3.     └─CVXR::Variable(p, q)
   4.       └─cli::cli_abort("Variable name {.val {as.character(name)}} must be a string.")
   5.         └─rlang::abort(...)
  ── Error ('test-cca_rrr.R:68:3'): cca_rrr computes the same solutions across solvers ──
  Error in `CVXR::Variable(p, q)`: Variable name "10" must be a string.
  Backtrace:
      ▆
   1. └─ccar3::cca_rrr(...) at test-cca_rrr.R:68:3
   2.   └─ccar3:::solve_rrr_cvxr(X, tilde_Y, lambda, thresh_0 = thresh_0)
   3.     └─CVXR::Variable(p, q)
   4.       └─cli::cli_abort("Variable name {.val {as.character(name)}} must be a string.")
   5.         └─rlang::abort(...)
  
  [ FAIL 2 | WARN 7 | SKIP 0 | PASS 112 ]
  Error:
  ! Test failures.
  Execution halted