Running 'testthat.R' [119s]
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
  
  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:  55 simultaneous processes spawned 
  Attempting fallback PSOCK backend...
  PSOCK setup also failed:  55 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:  55 simultaneous processes spawned 
  Attempting fallback PSOCK backend...
  PSOCK setup also failed:  55 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:  55 simultaneous processes spawned 
  Attempting fallback PSOCK backend...
  PSOCK setup also failed:  55 simultaneous processes spawned 
  Initial backend setup failed with error:  55 simultaneous processes spawned 
  Attempting fallback PSOCK backend...
  PSOCK setup also failed:  55 simultaneous processes spawned 
  [1] "Done ADMM"
  Saving _problems/test-cca_rrr-70.R
  Initial backend setup failed with error:  55 simultaneous processes spawned 
  Attempting fallback PSOCK backend...
  PSOCK setup also failed:  55 simultaneous processes spawned 
  Initial backend setup failed with error:  55 simultaneous processes spawned 
  Attempting fallback PSOCK backend...
  PSOCK setup also failed:  55 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:  55 simultaneous processes spawned 
  Attempting fallback PSOCK backend...
  PSOCK setup also failed:  55 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