Package: aramappings Check: dependencies in R code New result: WARNING Missing or unexported object: ‘CVXR::solve’ Package: aramappings Check: tests New result: ERROR Running ‘testthat.R’ [10s/10s] 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(aramappings) > > test_check("aramappings") Saving _problems/test-ara_exact_l1-154.R Saving _problems/test-ara_exact_l2-121.R Saving _problems/test-ara_exact_linf-153.R Saving _problems/test-ara_ordered_l1-126.R Saving _problems/test-ara_ordered_l2-121.R Saving _problems/test-ara_ordered_linf-125.R Saving _problems/test-ara_unconstrained_l1-161.R Saving _problems/test-ara_unconstrained_l2-127.R Saving _problems/test-ara_unconstrained_linf-162.R [ FAIL 9 | WARN 0 | SKIP 0 | PASS 192 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-ara_exact_l1.R:154:3'): (code run outside of `test_that()`) ──── Error in `CVXR::Variable(N, m)`: Variable name "1" must be a string. Backtrace: ▆ 1. └─aramappings::ara_exact_l1(X, V, variable = variable, solver = "CVXR") at test-ara_exact_l1.R:154:3 2. └─aramappings:::ara_exact_l1_CVXR(X, V, variable) 3. └─CVXR::Variable(N, m) 4. └─cli::cli_abort("Variable name {.val {as.character(name)}} must be a string.") 5. └─rlang::abort(...) ── Error ('test-ara_exact_l2.R:121:3'): (code run outside of `test_that()`) ──── Error in `CVXR::Variable(N, m)`: Variable name "1" must be a string. Backtrace: ▆ 1. └─aramappings::ara_exact_l2(X, V, solver = "CVXR") at test-ara_exact_l2.R:121:3 2. └─aramappings:::ara_exact_l2_CVXR(X, V, variable) 3. └─CVXR::Variable(N, m) 4. └─cli::cli_abort("Variable name {.val {as.character(name)}} must be a string.") 5. └─rlang::abort(...) ── Error ('test-ara_exact_linf.R:153:3'): (code run outside of `test_that()`) ── Error in `CVXR::Variable(N, m)`: Variable name "1" must be a string. Backtrace: ▆ 1. └─aramappings::ara_exact_linf(X, V, variable = variable, solver = "CVXR") at test-ara_exact_linf.R:153:3 2. └─aramappings:::ara_exact_linf_CVXR(X, V, variable) 3. └─CVXR::Variable(N, m) 4. └─cli::cli_abort("Variable name {.val {as.character(name)}} must be a string.") 5. └─rlang::abort(...) ── Error ('test-ara_ordered_l1.R:126:3'): (code run outside of `test_that()`) ── Error in `CVXR::Variable(N, m)`: Variable name "1" must be a string. Backtrace: ▆ 1. └─aramappings::ara_ordered_l1(X, V, variable = variable, solver = "CVXR") at test-ara_ordered_l1.R:126:3 2. └─aramappings:::ara_ordered_l1_CVXR(X, V, variable) 3. └─CVXR::Variable(N, m) 4. └─cli::cli_abort("Variable name {.val {as.character(name)}} must be a string.") 5. └─rlang::abort(...) ── Error ('test-ara_ordered_l2.R:121:3'): (code run outside of `test_that()`) ── Error in `CVXR::Variable(N, m)`: Variable name "1" must be a string. Backtrace: ▆ 1. └─aramappings::ara_ordered_l2(X, V, solver = "CVXR") at test-ara_ordered_l2.R:121:3 2. └─aramappings:::ara_ordered_l2_CVXR(X, V, variable) 3. └─CVXR::Variable(N, m) 4. └─cli::cli_abort("Variable name {.val {as.character(name)}} must be a string.") 5. └─rlang::abort(...) ── Error ('test-ara_ordered_linf.R:125:3'): (code run outside of `test_that()`) ── Error in `CVXR::Variable(N, m)`: Variable name "1" must be a string. Backtrace: ▆ 1. └─aramappings::ara_ordered_linf(X, V, variable = variable, solver = "CVXR") at test-ara_ordered_linf.R:125:3 2. └─aramappings:::ara_ordered_linf_CVXR(X, V, variable) 3. └─CVXR::Variable(N, m) 4. └─cli::cli_abort("Variable name {.val {as.character(name)}} must be a string.") 5. └─rlang::abort(...) ── Error ('test-ara_unconstrained_l1.R:161:3'): (code run outside of `test_that()`) ── Error in `CVXR::Variable(N, m)`: Variable name "1" must be a string. Backtrace: ▆ 1. └─aramappings::ara_unconstrained_l1(X, V, weights = w, solver = "CVXR") at test-ara_unconstrained_l1.R:161:3 2. └─aramappings:::ara_unconstrained_l1_CVXR(X, V) 3. └─CVXR::Variable(N, m) 4. └─cli::cli_abort("Variable name {.val {as.character(name)}} must be a string.") 5. └─rlang::abort(...) ── Error ('test-ara_unconstrained_l2.R:127:3'): (code run outside of `test_that()`) ── Error in `CVXR::Variable(N, m)`: Variable name "1" must be a string. Backtrace: ▆ 1. └─aramappings::ara_unconstrained_l2(X, V, solver = "CVXR") at test-ara_unconstrained_l2.R:127:3 2. └─aramappings:::ara_unconstrained_l2_CVXR(X, V) 3. └─CVXR::Variable(N, m) 4. └─cli::cli_abort("Variable name {.val {as.character(name)}} must be a string.") 5. └─rlang::abort(...) ── Error ('test-ara_unconstrained_linf.R:162:3'): (code run outside of `test_that()`) ── Error in `CVXR::Variable(N, m)`: Variable name "1" must be a string. Backtrace: ▆ 1. └─aramappings::ara_unconstrained_linf(X, V, weights = w, solver = "CVXR") at test-ara_unconstrained_linf.R:162:3 2. └─aramappings:::ara_unconstrained_linf_CVXR(X, V) 3. └─CVXR::Variable(N, m) 4. └─cli::cli_abort("Variable name {.val {as.character(name)}} must be a string.") 5. └─rlang::abort(...) [ FAIL 9 | WARN 0 | SKIP 0 | PASS 192 ] Error: ! Test failures. Execution halted Package: ccar3 Check: dependencies in R code New result: WARNING Missing or unexported object: ‘CVXR::solve’ Package: ccar3 Check: tests New result: ERROR Running ‘testthat.R’ [46s/46s] 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: 31 simultaneous processes spawned Attempting fallback PSOCK backend... PSOCK setup also failed: 31 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: 31 simultaneous processes spawned Attempting fallback PSOCK backend... PSOCK setup also failed: 31 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: 31 simultaneous processes spawned Attempting fallback PSOCK backend... PSOCK setup also failed: 31 simultaneous processes spawned Initial backend setup failed with error: 31 simultaneous processes spawned Attempting fallback PSOCK backend... PSOCK setup also failed: 31 simultaneous processes spawned [1] "Done ADMM" Saving _problems/test-cca_rrr-70.R Initial backend setup failed with error: 31 simultaneous processes spawned Attempting fallback PSOCK backend... PSOCK setup also failed: 31 simultaneous processes spawned Initial backend setup failed with error: 31 simultaneous processes spawned Attempting fallback PSOCK backend... PSOCK setup also failed: 31 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: 31 simultaneous processes spawned Attempting fallback PSOCK backend... PSOCK setup also failed: 31 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 Package: cuadramelo Check: dependencies in R code New result: WARNING Missing or unexported object: ‘CVXR::solve’ Package: cuadramelo Check: examples New result: ERROR Running examples in ‘cuadramelo-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: balance_by_blocks > ### Title: Balance matrix by blocks > ### Aliases: balance_by_blocks > > ### ** Examples > > set.seed(10) > Y <- (rnorm(32)*10) |> matrix(ncol = 2) |> round(3) > v <- aggregate(Y, by = list(rep(1:4, times = rep(4,4))), FUN = sum)[, -1] |> + round() |> as.matrix() > X <- balance_by_blocks(Y, v, layout = 2, L = 4) Error in `Variable()`: ! Variable name "2" must be a string. Backtrace: ▆ 1. └─cuadramelo::balance_by_blocks(Y, v, layout = 2, L = 4) 2. └─cuadramelo::balance_matrix(X, col_totals = v, row_totals = h) 3. └─CVXR::Variable(m, n) 4. └─cli::cli_abort("Variable name {.val {as.character(name)}} must be a string.") 5. └─rlang::abort(...) Execution halted Package: cuadramelo Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘balance-matrix.Rmd’ using rmarkdown Quitting from balance-matrix.Rmd:59-64 [unnamed-chunk-6] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `Variable()`: ! Variable name "5" must be a string. --- Backtrace: ▆ 1. └─cuadramelo::balance_matrix(example_matrix, col_totals, row_totals) 2. └─CVXR::Variable(m, n) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'balance-matrix.Rmd' failed with diagnostics: Variable name "5" must be a string. --- failed re-building ‘balance-matrix.Rmd’ --- re-building ‘round-matrix.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘round-matrix.Rmd’ SUMMARY: processing the following file failed: ‘balance-matrix.Rmd’ Error: Vignette re-building failed. Execution halted Package: DiSCos Check: dependencies in R code New result: WARNING Missing or unexported object: ‘CVXR::solve’ Package: DiSCos Check: tests New result: ERROR Running ‘testthat.R’ [67s/66s] 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(DiSCos) Loading required package: data.table Attaching package: 'data.table' The following object is masked from 'package:base': %notin% Loading required package: ggplot2 > > options(datatable.auto.thread = 1) # Limit data.table to 1 thread > Sys.setenv(OMP_NUM_THREADS = 1) # limit environment to 1 thread > > test_check("DiSCos") Saving _problems/test-DiSCo-13.R Saving _problems/test-DiSCo-97.R Saving _problems/test-DiSCo-99.R Saving _problems/test-DiSCo-112.R Saving _problems/test-DiSCo-114.R Warning: in are.pargam.valid(z): Parameter BETA is not > 0, invalid -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> are.pargam.valid -> warning -> are.pargam.valid(z) Warning: in pargam(lmom, ...): Parameters can not be computed likely because L1 <= L2 or L2 <= 0 -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> warning -> pargam(lmom, ...) Warning: in parln3(lmom, ...): L-skew is negative, try reversing the data Y <- -X, to avoid a log(<0) error -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> parln3 -> warning -> parln3(lmom, ...) Warning: in parrice(lmom, ...): LCV too small (<0.0236) for Rice as implemented -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> parrice -> warning -> parrice(lmom, ...) Warning: in are.pargam.valid(z): Parameter BETA is not > 0, invalid -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> are.pargam.valid -> warning -> are.pargam.valid(z) Warning: in pargam(lmom, ...): Parameters can not be computed likely because L1 <= L2 or L2 <= 0 -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> warning -> pargam(lmom, ...) Warning: in parrice(lmom, ...): LCV too small (<0.0236) for Rice as implemented -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> parrice -> warning -> parrice(lmom, ...) Warning: in are.pargam.valid(z): Parameter ALPHA is not > 0, invalid -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> are.pargam.valid -> warning -> are.pargam.valid(z) Warning: in pargam(lmom, ...): Parameters can not be computed likely because L1 <= L2 or L2 <= 0 -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> warning -> pargam(lmom, ...) Warning: in parrice(lmom, ...): LCV too small (<0.0236) for Rice as implemented -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> parrice -> warning -> parrice(lmom, ...) Warning: in are.pargam.valid(z): Parameter BETA is not > 0, invalid -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> are.pargam.valid -> warning -> are.pargam.valid(z) Warning: in pargam(lmom, ...): Parameters can not be computed likely because L1 <= L2 or L2 <= 0 -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> warning -> pargam(lmom, ...) Warning: in parln3(lmom, ...): L-skew is negative, try reversing the data Y <- -X, to avoid a log(<0) error -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> parln3 -> warning -> parln3(lmom, ...) Warning: in parrice(lmom, ...): LCV too small (<0.0236) for Rice as implemented -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> parrice -> warning -> parrice(lmom, ...) Warning: in are.pargam.valid(z): Parameter ALPHA is not > 0, invalid -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> are.pargam.valid -> warning -> are.pargam.valid(z) Warning: in pargam(lmom, ...): Parameters can not be computed likely because L1 <= L2 or L2 <= 0 -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> warning -> pargam(lmom, ...) Warning: in parrice(lmom, ...): LCV too small (<0.0236) for Rice as implemented -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> parrice -> warning -> parrice(lmom, ...) Warning: in are.pargam.valid(z): Parameter BETA is not > 0, invalid -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> are.pargam.valid -> warning -> are.pargam.valid(z) Warning: in pargam(lmom, ...): Parameters can not be computed likely because L1 <= L2 or L2 <= 0 -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> warning -> pargam(lmom, ...) Warning: in parrice(lmom, ...): LCV too small (<0.0236) for Rice as implemented -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> parrice -> warning -> parrice(lmom, ...) Warning: in are.pargam.valid(z): Parameter BETA is not > 0, invalid -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> are.pargam.valid -> warning -> are.pargam.valid(z) Warning: in pargam(lmom, ...): Parameters can not be computed likely because L1 <= L2 or L2 <= 0 -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> warning -> pargam(lmom, ...) Warning: in parrice(lmom, ...): LCV too small (<0.0236) for Rice as implemented -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> parrice -> warning -> parrice(lmom, ...) Warning: in are.pargam.valid(z): Parameter ALPHA is not > 0, invalid -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> are.pargam.valid -> warning -> are.pargam.valid(z) Warning: in are.pargam.valid(z): Parameter BETA is not > 0, invalid -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> are.pargam.valid -> warning -> are.pargam.valid(z) Warning: in pargam(lmom, ...): Parameters can not be computed likely because L1 <= L2 or L2 <= 0 -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> warning -> pargam(lmom, ...) Warning: in are.pargam.valid(z): Parameter ALPHA is not > 0, invalid -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> are.pargam.valid -> warning -> are.pargam.valid(z) Warning: in pargam(lmom, ...): Parameters can not be computed likely because L1 <= L2 or L2 <= 0 -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> pargam -> warning -> pargam(lmom, ...) Warning: in parln3(lmom, ...): L-skew is negative, try reversing the data Y <- -X, to avoid a log(<0) error -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> parln3 -> warning -> parln3(lmom, ...) Warning: in parrice(lmom, ...): LCV too small (<0.0236) for Rice as implemented -- tryStack sys.calls: test_check -> test_dir -> test_files -> test_files_serial -> with_reporter -> lapply -> FUN -> source_file -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> test_that -> test_code -> withRestarts -> withOneRestart -> withCallingHandlers -> eval -> eval -> expect_no_error -> expect_no_ -> quasi_capture -> .capture -> withRestarts -> withOneRestart -> withCallingHandlers -> eval_bare -> DiSCo -> mclapply.hack -> lapply -> FUN -> myQuant -> extremeStat::distLquantile -> distLfit -> lapply -> FUN -> tryStack -> lmomco::lmom2par -> parrice -> warning -> parrice(lmom, ...) Saving _problems/test-DiSCo-163.R Saving _problems/test-DiSCo-166.R Saving _problems/test-DiSCo-216.R Saving _problems/test-DiSCo-224.R Call: DiSCoTEA(disco = disco, agg = "quantile") Reference: Gunsilius, Florian F. "Distributional synthetic controls." Econometrica 91, no. 3 (2023): 1105-1117. No treatment effects to summarize, set graph=TRUE in function call or specify a treatment effect option in `agg`.Saving _problems/test-DiSCoTEA-25.R Call: DiSCoTEA(disco = disco, agg = "cdf") Reference: Gunsilius, Florian F. "Distributional synthetic controls." Econometrica 91, no. 3 (2023): 1105-1117. No treatment effects to summarize, set graph=TRUE in function call or specify a treatment effect option in `agg`.Saving _problems/test-DiSCoTEA-60.R Call: DiSCoTEA(disco = disco, agg = "quantileDiff") Reference: Gunsilius, Florian F. "Distributional synthetic controls." Econometrica 91, no. 3 (2023): 1105-1117. Aggregated Distribution Differences, Quantile Δ Time X_from X_to Quantile Δ Std. Error [95% Conf. Band] 2 0.00 0.25 -1.7561 1.5609 -3.4356 -1.3386 * 2 0.25 0.50 -1.8575 3.1431 -4.8640 -0.6412 * 2 0.50 0.75 -4.5250 4.8535 -9.4400 -2.9192 * 2 0.75 1.00 -6.9157 5.4630 -12.4064 -5.0669 * --- Signif. codes: `*' Confidence band for distribution differences does not cover 0 No permutation test performed. Number of pre-treatment periods: 1 Number of post-treatment periods: 1 N=10,000 Saving _problems/test-DiSCoTEA-94.R Call: DiSCoTEA(disco = disco, agg = "quantileDiff") Reference: Gunsilius, Florian F. "Distributional synthetic controls." Econometrica 91, no. 3 (2023): 1105-1117. Aggregated Distribution Differences, Quantile Δ Time X_from X_to Quantile Δ Std. Error [95% Conf. Band] 2 0.00 0.25 -1.7561 1.5609 -3.4356 -1.3386 * 2 0.25 0.50 -1.8575 3.1431 -4.8640 -0.6412 * 2 0.50 0.75 -4.5250 4.8535 -9.4400 -2.9192 * 2 0.75 1.00 -6.9157 5.4630 -12.4064 -5.0669 * --- Signif. codes: `*' Confidence band for distribution differences does not cover 0 No permutation test performed. Number of pre-treatment periods: 1 Number of post-treatment periods: 1 N=10,000 Saving _problems/test-DiSCoTEA-128.R [ FAIL 13 | WARN 0 | SKIP 0 | PASS 72 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-DiSCo.R:13:3'): mixture weights sum up to 1 ──────────────────── Error: 'solve' is not an exported object from 'namespace:CVXR' Backtrace: ▆ 1. └─DiSCos::DiSCo(...) at test-DiSCo.R:13:3 2. └─DiSCos:::mclapply.hack(...) 3. └─base::lapply(...) 4. └─DiSCos (local) FUN(X[[i]], ...) 5. └─DiSCos:::DiSCo_mixture(...) 6. └─DiSCos:::DiSCo_mixture_solve(...) ── Failure ('test-DiSCo.R:97:3'): simplex results in weakly positive weights for mixture ── Expected `... <- NULL` not to throw any errors. Actually got a with message: 'solve' is not an exported object from 'namespace:CVXR' ── Error ('test-DiSCo.R:99:3'): simplex results in weakly positive weights for mixture ── Error in `eval(code, test_env)`: object 'disco' not found Backtrace: ▆ 1. └─testthat::expect_true(all(disco$weights > -1e-05)) at test-DiSCo.R:99:3 2. └─testthat::quasi_label(enquo(object), label) 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Failure ('test-DiSCo.R:112:3'): returned quantile functions and cdfs are weakly increasing ── Expected `... <- NULL` not to throw any errors. Actually got a with message: 'solve' is not an exported object from 'namespace:CVXR' ── Error ('test-DiSCo.R:114:3'): returned quantile functions and cdfs are weakly increasing ── Error in `eval(code, test_env)`: object 'disco' not found ── Failure ('test-DiSCo.R:163:3'): discrete support works for mixture ────────── Expected `... <- NULL` not to throw any errors. Actually got a with message: 'solve' is not an exported object from 'namespace:CVXR' ── Error ('test-DiSCo.R:166:3'): discrete support works for mixture ──────────── Error in `eval(code, test_env)`: object 'disco' not found Backtrace: ▆ 1. └─testthat::expect_true(...) at test-DiSCo.R:166:3 2. └─testthat::quasi_label(enquo(object), label) 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Failure ('test-DiSCo.R:216:3'): test that variations of other arguments work ── Expected `... <- NULL` not to throw any errors. Actually got a with message: 'solve' is not an exported object from 'namespace:CVXR' ── Failure ('test-DiSCo.R:224:3'): test that variations of other arguments work ── Expected `... <- NULL` not to throw any errors. Actually got a with message: 'solve' is not an exported object from 'namespace:CVXR' ── Error ('test-DiSCoTEA.R:25:3'): quantile works ────────────────────────────── Error: 'solve' is not an exported object from 'namespace:CVXR' Backtrace: ▆ 1. └─DiSCos::DiSCo(...) at test-DiSCoTEA.R:25:3 2. └─DiSCos:::mclapply.hack(...) 3. └─base::lapply(...) 4. └─DiSCos (local) FUN(X[[i]], ...) 5. └─DiSCos:::DiSCo_mixture(...) 6. └─DiSCos:::DiSCo_mixture_solve(...) ── Error ('test-DiSCoTEA.R:60:3'): cdf works ─────────────────────────────────── Error: 'solve' is not an exported object from 'namespace:CVXR' Backtrace: ▆ 1. └─DiSCos::DiSCo(...) at test-DiSCoTEA.R:60:3 2. └─DiSCos:::mclapply.hack(...) 3. └─base::lapply(...) 4. └─DiSCos (local) FUN(X[[i]], ...) 5. └─DiSCos:::DiSCo_mixture(...) 6. └─DiSCos:::DiSCo_mixture_solve(...) ── Error ('test-DiSCoTEA.R:94:3'): quantileDiff works ────────────────────────── Error: 'solve' is not an exported object from 'namespace:CVXR' Backtrace: ▆ 1. └─DiSCos::DiSCo(...) at test-DiSCoTEA.R:94:3 2. └─DiSCos:::mclapply.hack(...) 3. └─base::lapply(...) 4. └─DiSCos (local) FUN(X[[i]], ...) 5. └─DiSCos:::DiSCo_mixture(...) 6. └─DiSCos:::DiSCo_mixture_solve(...) ── Error ('test-DiSCoTEA.R:128:3'): cdfDiff works ────────────────────────────── Error: 'solve' is not an exported object from 'namespace:CVXR' Backtrace: ▆ 1. └─DiSCos::DiSCo(...) at test-DiSCoTEA.R:128:3 2. └─DiSCos:::mclapply.hack(...) 3. └─base::lapply(...) 4. └─DiSCos (local) FUN(X[[i]], ...) 5. └─DiSCos:::DiSCo_mixture(...) 6. └─DiSCos:::DiSCo_mixture_solve(...) [ FAIL 13 | WARN 0 | SKIP 0 | PASS 72 ] Error: ! Test failures. Execution halted Package: EmpiricalDynamics Check: dependencies in R code New result: WARNING Missing or unexported object: ‘CVXR::solve’ Package: EmpiricalDynamics Check: tests New result: ERROR Running ‘testthat.R’ [4s/4s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # Test configuration for EmpiricalDynamics package > > library(testthat) > library(EmpiricalDynamics) > > test_check("EmpiricalDynamics") Primary solver failed, trying SCS... Saving _problems/test-preprocessing-49.R Variable specification: Endogenous: Z Coupled: X Exogenous: Y Time: time Suggested method: spline Reason: High noise level detected Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... Primary optimization method failed: evaluation of fn function returns non-sensible value! Attempting fallback to standard NLS... [ FAIL 1 | WARN 1 | SKIP 4 | PASS 82 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • On CRAN (3): 'test-symbolic_search.R:97:3', 'test-validation.R:277:3', 'test-validation.R:318:3' • estimate_sde_iterative failed (1): 'test-validation.R:158:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-preprocessing.R:49:3'): compute_derivative TVR requires CVXR ─── Error in `result$getValue(dZ)`: attempt to apply non-function Backtrace: ▆ 1. └─EmpiricalDynamics::compute_derivative(...) at test-preprocessing.R:49:3 2. └─EmpiricalDynamics::compute_derivative_tvr(Z, t, ...) 3. └─base::as.vector(result$getValue(dZ)) [ FAIL 1 | WARN 1 | SKIP 4 | PASS 82 ] Error: ! Test failures. Execution halted Package: EpiForsk Check: dependencies in R code New result: WARNING Missing or unexported object: ‘CVXR::solve’ Package: EpiForsk Check: examples New result: ERROR Running examples in ‘EpiForsk-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: fct_confint > ### Title: Confidence set for functions of model parameters > ### Aliases: fct_confint fct_confint.lm fct_confint.glm fct_confint.lms > ### fct_confint.default > > ### ** Examples > > data <- 1:5 |> + purrr::map( + \(x) { + name = paste0("cov", x); + dplyr::tibble("{name}" := rnorm(100, 1)) + } + ) |> + purrr::list_cbind() |> + dplyr::mutate( + y = rowSums(dplyr::across(dplyr::everything())) + rnorm(100) + ) > lm <- lm( + as.formula( + paste0("y ~ 0 + ", paste0(names(data)[names(data) != "y"], collapse = " + ")) + ), + data + ) > fct_confint(lm, sum) Error in (function (.x, .f, ..., .progress = FALSE) : ℹ In index: 1. Caused by error: ! 'solve' is not an exported object from 'namespace:CVXR' Calls: fct_confint ... tryCatchList -> tryCatchOne -> -> ci_fct_error_handler Execution halted Package: fairml Check: dependencies in R code New result: WARNING Missing or unexported object: ‘CVXR::solve’ Package: fungible Check: whether package can be installed New result: ERROR Installation failed. Package: glmmrOptim Check: examples New result: ERROR Running examples in ‘glmmrOptim-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: DesignSpace > ### Title: A GLMM Design Space > ### Aliases: DesignSpace > > ### ** Examples > > > ## ------------------------------------------------ > ## Method `DesignSpace$new` > ## ------------------------------------------------ > > ## Don't show: > glmmrBase::setParallel(FALSE) # for the CRAN check > setParallelOptim(FALSE) > ## End(Don't show) > df <- nelder(~ ((int(2)*t(3)) > cl(3)) > ind(5)) > df$int <- df$int - 1 > des <- Model$new(formula = ~ int + factor(t) - 1+ (1|gr(cl)) + (1|gr(cl,t)), + covariance = c(0.04,0.01), + mean = rep(0,4), + data=df, + family=gaussian()) > ds <- DesignSpace$new(des) experimental condition not provided, assuming each observation is a separate experimental condition. experimental condition can be changed manually in self$experimental_condition > #add another design > des2 <- Model$new(formula = ~ int + factor(t) - 1 + (1|gr(cl)) + (1|gr(cl,t)), + covariance = c(0.05,0.8), + mean = rep(0,4), + data=df, + family=gaussian()) > ds$add(des2) > #report the size of the design > ds$n() n.designs n 2 90 > #we can access specific designs > ds$show(2)$n() [1] 90 > #and then remove it > ds$remove(2) > #or we could add them when we construct object > ds <- DesignSpace$new(des,des2) weights not provided, assigning equal weighting. weights can be changed manually in self$weights experimental condition not provided, assuming each observation is a separate experimental condition. experimental condition can be changed manually in self$experimental_condition > #we can specify weights > ds <- DesignSpace$new(des,des2,weights=c(0.1,0.9)) experimental condition not provided, assuming each observation is a separate experimental condition. experimental condition can be changed manually in self$experimental_condition > #and add experimental conditions > ds <- DesignSpace$new(des,des2,experimental_condition = df$cl) weights not provided, assigning equal weighting. weights can be changed manually in self$weights > > ## ------------------------------------------------ > ## Method `DesignSpace$add` > ## ------------------------------------------------ > > #See examples for constructing the class > > ## ------------------------------------------------ > ## Method `DesignSpace$remove` > ## ------------------------------------------------ > > #See examples for constructing the class > > ## ------------------------------------------------ > ## Method `DesignSpace$print` > ## ------------------------------------------------ > > #See examples for constructing the class > > ## ------------------------------------------------ > ## Method `DesignSpace$n` > ## ------------------------------------------------ > > #See examples for constructing the class > > ## ------------------------------------------------ > ## Method `DesignSpace$optimal` > ## ------------------------------------------------ > > ## Don't show: > glmmrBase::setParallel(FALSE) # for the CRAN check > setParallelOptim(FALSE) > ## End(Don't show) > df <- nelder(~(cl(6)*t(5)) > ind(5)) > df$int <- 0 > df[df$t >= df$cl, 'int'] <- 1 > des <- Model$new( + formula = ~ factor(t) + int - 1 + (1|gr(cl)), + covariance = c(0.05), + mean = c(rep(0,5),0.6), + data=df, + family=gaussian(), + var_par = 1 + ) > ds <- DesignSpace$new(des) experimental condition not provided, assuming each observation is a separate experimental condition. experimental condition can be changed manually in self$experimental_condition > > #find the optimal design of size 30 individuals using reverse greedy search > # change algo=1 for local search, and algo = 2 for greedy search > opt2 <- ds$optimal(30,C=list(c(rep(0,5),1)),algo=3) Checking experimental condition correlations... Experimental conditions correlated, using combinatorial search algorithms Starting val: 0.0514286 REVERSE GREEDY SEARCH for design of size 30 |Iteration 1| Size: 150 Current value: 0.0514286 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 21**| |Iteration 2| Size: 149 Current value: 0.0514286 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 21**| |Iteration 3| Size: 148 Current value: 0.0514286 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 10**| |Iteration 4| Size: 147 Current value: 0.0514286 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 10**| |Iteration 5| Size: 146 Current value: 0.0514286 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 10**| |Iteration 6| Size: 145 Current value: 0.0514286 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 10**| |Iteration 7| Size: 144 Current value: 0.0514286 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 10**| |Iteration 8| Size: 143 Current value: 0.0514286 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 21**| |Iteration 9| Size: 142 Current value: 0.0514286 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 21**| |Iteration 10| Size: 141 Current value: 0.0514286 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 21**| |Iteration 11| Size: 140 Current value: 0.0514286 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 4**| |Iteration 12| Size: 139 Current value: 0.0514372 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 27**| |Iteration 13| Size: 138 Current value: 0.0514459 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 27**| |Iteration 14| Size: 137 Current value: 0.0514556 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 4**| |Iteration 15| Size: 136 Current value: 0.0514653 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 4**| |Iteration 16| Size: 135 Current value: 0.0514763 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 27**| |Iteration 17| Size: 134 Current value: 0.0514874 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 27**| |Iteration 18| Size: 133 Current value: 0.0515 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 4**| |Iteration 19| Size: 132 Current value: 0.0515127 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 4**| |Iteration 20| Size: 131 Current value: 0.0515272 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 27**| |Iteration 21| Size: 130 Current value: 0.0515419 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 26**| |Iteration 22| Size: 129 Current value: 0.0515716 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 5**| |Iteration 23| Size: 128 Current value: 0.0516018 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 15**| |Iteration 24| Size: 127 Current value: 0.051634 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 5**| |Iteration 25| Size: 126 Current value: 0.0516659 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 16**| |Iteration 26| Size: 125 Current value: 0.0516981 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 26**| |Iteration 27| Size: 124 Current value: 0.0517301 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 16**| |Iteration 28| Size: 123 Current value: 0.0517639 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 26**| |Iteration 29| Size: 122 Current value: 0.0517978 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 15**| |Iteration 30| Size: 121 Current value: 0.0518316 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 5**| |Iteration 31| Size: 120 Current value: 0.0518656 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 15**| |Iteration 32| Size: 119 Current value: 0.0519012 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 5**| |Iteration 33| Size: 118 Current value: 0.0519373 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 16**| |Iteration 34| Size: 117 Current value: 0.0519728 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 26**| |Iteration 35| Size: 116 Current value: 0.0520092 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 16**| |Iteration 36| Size: 115 Current value: 0.0520466 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 15**| |Iteration 37| Size: 114 Current value: 0.0520849 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 26**| |Iteration 38| Size: 113 Current value: 0.0521225 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 5**| |Iteration 39| Size: 112 Current value: 0.0521615 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 15**| |Iteration 40| Size: 111 Current value: 0.0522007 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 16**| |Iteration 41| Size: 110 Current value: 0.0522413 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 9**| |Iteration 42| Size: 109 Current value: 0.0523324 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 22**| |Iteration 43| Size: 108 Current value: 0.0524252 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 22**| |Iteration 44| Size: 107 Current value: 0.0525314 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 9**| |Iteration 45| Size: 106 Current value: 0.0526397 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 9**| |Iteration 46| Size: 105 Current value: 0.0527649 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 22**| |Iteration 47| Size: 104 Current value: 0.0528931 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 11**| |Iteration 48| Size: 103 Current value: 0.0530384 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 20**| |Iteration 49| Size: 102 Current value: 0.0531844 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 3**| |Iteration 50| Size: 101 Current value: 0.053335 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 28**| |Iteration 51| Size: 100 Current value: 0.053478 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 9**| |Iteration 52| Size: 99 Current value: 0.0536387 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 3**| |Iteration 53| Size: 98 Current value: 0.0538034 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 28**| |Iteration 54| Size: 97 Current value: 0.053961 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 22**| |Iteration 55| Size: 96 Current value: 0.054132 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 28**| |Iteration 56| Size: 95 Current value: 0.0543156 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 3**| |Iteration 57| Size: 94 Current value: 0.0544871 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 3**| |Iteration 58| Size: 93 Current value: 0.0546878 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 28**| |Iteration 59| Size: 92 Current value: 0.0548731 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 20**| |Iteration 60| Size: 91 Current value: 0.0550862 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 11**| |Iteration 61| Size: 90 Current value: 0.055301 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 9**| |Iteration 62| Size: 89 Current value: 0.0555306 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 3**| |Iteration 63| Size: 88 Current value: 0.0557633 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 28**| |Iteration 64| Size: 87 Current value: 0.0559802 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 22**| |Iteration 65| Size: 86 Current value: 0.0562282 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 11**| |Iteration 66| Size: 85 Current value: 0.0565218 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 20**| |Iteration 67| Size: 84 Current value: 0.0568186 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 11**| |Iteration 68| Size: 83 Current value: 0.0571966 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 20**| |Iteration 69| Size: 82 Current value: 0.0575798 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 14**| |Iteration 70| Size: 81 Current value: 0.0580409 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 29**| |Iteration 71| Size: 80 Current value: 0.0584974 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 17**| |Iteration 72| Size: 79 Current value: 0.0589809 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 2**| |Iteration 73| Size: 78 Current value: 0.0594449 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 11**| |Iteration 74| Size: 77 Current value: 0.059977 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 14**| |Iteration 75| Size: 76 Current value: 0.0604997 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 29**| |Iteration 76| Size: 75 Current value: 0.0610161 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 17**| |Iteration 77| Size: 74 Current value: 0.0615941 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 2**| |Iteration 78| Size: 73 Current value: 0.0621474 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 20**| |Iteration 79| Size: 72 Current value: 0.0627212 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 17**| |Iteration 80| Size: 71 Current value: 0.063351 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 2**| |Iteration 81| Size: 70 Current value: 0.0639731 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 14**| |Iteration 82| Size: 69 Current value: 0.0646419 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 29**| |Iteration 83| Size: 68 Current value: 0.065274 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 8**| |Iteration 84| Size: 67 Current value: 0.0660216 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 23**| |Iteration 85| Size: 66 Current value: 0.0667205 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 17**| |Iteration 86| Size: 65 Current value: 0.0675351 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 2**| |Iteration 87| Size: 64 Current value: 0.0682604 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 29**| |Iteration 88| Size: 63 Current value: 0.0691035 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 14**| |Iteration 89| Size: 62 Current value: 0.0698716 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 23**| |Iteration 90| Size: 61 Current value: 0.0708093 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 8**| |Iteration 91| Size: 60 Current value: 0.0716751 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 2**| |Iteration 92| Size: 59 Current value: 0.0726835 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 17**| |Iteration 93| Size: 58 Current value: 0.0736193 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 29**| |Iteration 94| Size: 57 Current value: 0.0746459 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 14**| |Iteration 95| Size: 56 Current value: 0.0756742 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 23**| |Iteration 96| Size: 55 Current value: 0.0768911 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 8**| |Iteration 97| Size: 54 Current value: 0.0779958 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 23**| |Iteration 98| Size: 53 Current value: 0.079413 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 8**| |Iteration 99| Size: 52 Current value: 0.0806647 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 1**| |Iteration 100| Size: 51 Current value: 0.0822442 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 6**| |Iteration 101| Size: 50 Current value: 0.0836054 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 8**| |Iteration 102| Size: 49 Current value: 0.0853007 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 23**| |Iteration 103| Size: 48 Current value: 0.086821 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 25**| |Iteration 104| Size: 47 Current value: 0.0885851 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 30**| |Iteration 105| Size: 46 Current value: 0.0901082 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 25**| |Iteration 106| Size: 45 Current value: 0.0922317 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 30**| |Iteration 107| Size: 44 Current value: 0.0939614 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 1**| |Iteration 108| Size: 43 Current value: 0.0962726 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 6**| |Iteration 109| Size: 42 Current value: 0.0981587 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 7**| |Iteration 110| Size: 41 Current value: 0.10073 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 12**| |Iteration 111| Size: 40 Current value: 0.102972 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 19**| |Iteration 112| Size: 39 Current value: 0.105796 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 24**| |Iteration 113| Size: 38 Current value: 0.108263 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 13**| |Iteration 114| Size: 37 Current value: 0.111409 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 18**| |Iteration 115| Size: 36 Current value: 0.114165 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 24**| |Iteration 116| Size: 35 Current value: 0.117912 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 19**| |Iteration 117| Size: 34 Current value: 0.121012 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 25**| |Iteration 118| Size: 33 Current value: 0.125093 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 30**| |Iteration 119| Size: 32 Current value: 0.128099 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 12**| |Iteration 120| Size: 31 Current value: 0.13282 Calculating removals: 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| ************************************************ Removing: 7**| FINISHED REVERSE GREEDY SEARCH> > #let the experimental condition be the cluster > # these experimental conditions are independent of one another > ds <- DesignSpace$new(des,experimental_condition = df$cl) > # now find the optimal 4 clusters to include > # approximately, finding the weights for each condition > opt <- ds$optimal(4,C=list(c(rep(0,5),1))) Checking experimental condition correlations... Experimental conditions uncorrelated, using second-order cone program Error: 'solve' is not an exported object from 'namespace:CVXR' Execution halted Package: graphicalExtremes Check: dependencies in R code New result: WARNING Missing or unexported objects: ‘CVXR::diag’ ‘CVXR::solve’ Package: hedgedrf Check: dependencies in R code New result: WARNING Missing or unexported object: ‘CVXR::solve’ Package: hedgedrf Check: examples New result: ERROR Running examples in ‘hedgedrf-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: hedgedrf > ### Title: hedgedrf > ### Aliases: hedgedrf > > ### ** Examples > > rf <- hedgedrf(mpg ~ ., mtcars[1:26, ]) Error: 'solve' is not an exported object from 'namespace:CVXR' Execution halted Package: HonestDiD Check: dependencies in R code New result: WARNING Missing or unexported object: ‘CVXR::solve’ Package: kantorovich Check: examples New result: ERROR Running examples in ‘kantorovich-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: kantorovich_CVX > ### Title: Computes Kantorovich distance with CVX > ### Aliases: kantorovich_CVX > > ### ** Examples > > x <- c(1.5, 2, -3) > mu <- c(1/7, 2/7, 4/7) > y <- c(4, 3.5, 0, -2) > nu <- c(1/4, 1/4, 1/4, 1/4) > M <- outer(x, y, FUN = function(x, y) abs(x - y)) > kantorovich_CVX(mu, nu, dist = M) Error in `method(solve_via_data, CVXR::ECOS_Solver)`: ! Package ECOSolveR is required but not installed. Backtrace: ▆ 1. └─kantorovich::kantorovich_CVX(mu, nu, dist = M) 2. └─CVXR::psolve(problem, solver = solver, ...) 3. └─CVXR::solve_via_data(...) 4. ├─S7::S7_dispatch() 5. └─CVXR (local) `method(solve_via_data, CVXR::SolvingChain)`(...) 6. └─CVXR::solve_via_data(...) 7. ├─S7::S7_dispatch() 8. └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...) 9. └─cli::cli_abort("Package {.pkg ECOSolveR} is required but not installed.") 10. └─rlang::abort(...) Execution halted Package: kantorovich Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘kantorovich.Rmd’ using rmarkdown Quitting from kantorovich.Rmd:176-189 [unnamed-chunk-14] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `method(solve_via_data, CVXR::ECOS_Solver)`: ! Package ECOSolveR is required but not installed. --- Backtrace: ▆ 1. └─kantorovich::kantorovich_CVX(mu, nu, dist = M) 2. └─CVXR::psolve(problem, solver = solver, ...) 3. └─CVXR::solve_via_data(...) 4. ├─S7::S7_dispatch() 5. └─CVXR (local) `method(solve_via_data, CVXR::SolvingChain)`(...) 6. └─CVXR::solve_via_data(...) 7. ├─S7::S7_dispatch() 8. └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'kantorovich.Rmd' failed with diagnostics: Package ECOSolveR is required but not installed. --- failed re-building ‘kantorovich.Rmd’ SUMMARY: processing the following file failed: ‘kantorovich.Rmd’ Error: Vignette re-building failed. Execution halted Package: kantorovich Check: tests New result: ERROR Running ‘testthat.R’ [5s/5s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(kantorovich) Warning message: replacing previous import 'CVXR::outer' by 'gmp::outer' when loading 'kantorovich' > library(gmp) Attaching package: 'gmp' The following objects are masked from 'package:base': %*%, apply, crossprod, matrix, tcrossprod > > test_check("kantorovich") Saving _problems/test-CVX-6.R Saving _problems/test-CVX-16.R Saving _problems/test-CVX-37.R [ FAIL 3 | WARN 0 | SKIP 0 | PASS 130 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-CVX.R:6:3'): kantorovich_CVX default distance ────────────────── Error in ``method(solve_via_data, CVXR::ECOS_Solver)`(x = , data = list(c = c(0, 1, 1, 1, 0, 1, 1, 1, 0), A = new("dgCMatrix", i = c(0L, 3L, 6L, 0L, 4L, 7L, 0L, 5L, 8L, 1L, 3L, 9L, 1L, 4L, 10L, 1L, 5L, 11L, 2L, 3L, 12L, 2L, 4L, 13L, 2L, 5L, 14L), p = c(0L, 3L, 6L, 9L, 12L, 15L, 18L, 21L, 24L, 27L), Dim = c(15L, 9L), Dimnames = list(NULL, NULL), x = c(1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1), factors = list()), b = c(0.142857142857143, 0.285714285714286, 0.571428571428571, 0.25, 0.25, 0.5, 0, 0, 0, 0, 0, 0, 0, 0, 0), dims = , bool_idx = integer(0), int_idx = integer(0)), warm_start = FALSE, verbose = FALSE, solver_opts = list(), ...)`: Package ECOSolveR is required but not installed. Backtrace: ▆ 1. └─kantorovich::kantorovich_CVX(mu, nu, dist = 1 - diag(3L)) at test-CVX.R:6:3 2. └─CVXR::psolve(problem, solver = solver, ...) 3. └─CVXR::solve_via_data(...) 4. ├─S7::S7_dispatch() 5. └─CVXR (local) `method(solve_via_data, CVXR::SolvingChain)`(...) 6. └─CVXR::solve_via_data(...) 7. ├─S7::S7_dispatch() 8. └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...) 9. └─cli::cli_abort("Package {.pkg ECOSolveR} is required but not installed.") 10. └─rlang::abort(...) ── Error ('test-CVX.R:16:3'): kantorovich_CVX - specified distance ───────────── Error in ``method(solve_via_data, CVXR::ECOS_Solver)`(x = , data = list(c = c(0, 0.333333333333333, 0.666666666666667, 1, 0.333333333333333, 0, 0.333333333333333, 0.666666666666667, 0.666666666666667, 0.333333333333333, 0, 0.333333333333333, 1, 0.666666666666667, 0.333333333333333, 0), A = new("dgCMatrix", i = c(0L, 4L, 8L, 0L, 5L, 9L, 0L, 6L, 10L, 0L, 7L, 11L, 1L, 4L, 12L, 1L, 5L, 13L, 1L, 6L, 14L, 1L, 7L, 15L, 2L, 4L, 16L, 2L, 5L, 17L, 2L, 6L, 18L, 2L, 7L, 19L, 3L, 4L, 20L, 3L, 5L, 21L, 3L, 6L, 22L, 3L, 7L, 23L), p = c(0L, 3L, 6L, 9L, 12L, 15L, 18L, 21L, 24L, 27L, 30L, 33L, 36L, 39L, 42L, 45L, 48L), Dim = c(24L, 16L), Dimnames = list(NULL, NULL), x = c(1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1), factors = list()), b = c(0.25, 0.75, 0, 0, 0, 0.5, 0.5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), dims = , bool_idx = integer(0), int_idx = integer(0)), warm_start = FALSE, verbose = FALSE, solver_opts = list(), ...)`: Package ECOSolveR is required but not installed. Backtrace: ▆ 1. └─kantorovich::kantorovich_CVX(mu, nu, dist = dist) at test-CVX.R:16:3 2. └─CVXR::psolve(problem, solver = solver, ...) 3. └─CVXR::solve_via_data(...) 4. ├─S7::S7_dispatch() 5. └─CVXR (local) `method(solve_via_data, CVXR::SolvingChain)`(...) 6. └─CVXR::solve_via_data(...) 7. ├─S7::S7_dispatch() 8. └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...) 9. └─cli::cli_abort("Package {.pkg ECOSolveR} is required but not installed.") 10. └─rlang::abort(...) ── Error ('test-CVX.R:37:3'): kantorovich_CVX - nonsymmetric dist ────────────── Error in ``method(solve_via_data, CVXR::ECOS_Solver)`(x = , data = list(c = c(0, 1, 3, 1, 0, 4, 2, 4, 0), A = new("dgCMatrix", i = c(0L, 3L, 6L, 0L, 4L, 7L, 0L, 5L, 8L, 1L, 3L, 9L, 1L, 4L, 10L, 1L, 5L, 11L, 2L, 3L, 12L, 2L, 4L, 13L, 2L, 5L, 14L), p = c(0L, 3L, 6L, 9L, 12L, 15L, 18L, 21L, 24L, 27L), Dim = c(15L, 9L), Dimnames = list(NULL, NULL), x = c(1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1), factors = list()), b = c(0.142857142857143, 0.285714285714286, 0.571428571428571, 0.333333333333333, 0.111111111111111, 0.555555555555556, 0, 0, 0, 0, 0, 0, 0, 0, 0), dims = , bool_idx = integer(0), int_idx = integer(0)), warm_start = FALSE, verbose = FALSE, solver_opts = list(), ...)`: Package ECOSolveR is required but not installed. Backtrace: ▆ 1. └─kantorovich::kantorovich_CVX(mu, nu, dist = D) at test-CVX.R:37:3 2. └─CVXR::psolve(problem, solver = solver, ...) 3. └─CVXR::solve_via_data(...) 4. ├─S7::S7_dispatch() 5. └─CVXR (local) `method(solve_via_data, CVXR::SolvingChain)`(...) 6. └─CVXR::solve_via_data(...) 7. ├─S7::S7_dispatch() 8. └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...) 9. └─cli::cli_abort("Package {.pkg ECOSolveR} is required but not installed.") 10. └─rlang::abort(...) [ FAIL 3 | WARN 0 | SKIP 0 | PASS 130 ] Error: ! Test failures. Execution halted Package: kantorovich Check: whether package can be installed New result: WARNING Found the following significant warnings: Warning: replacing previous import ‘CVXR::outer’ by ‘gmp::outer’ when loading ‘kantorovich’ Package: MaximinInfer Check: examples New result: WARNING Found the following significant warnings: Warning: `getValue()` is deprecated. Deprecated functions may be defunct as soon as of the next release of R. See ?Deprecated. Package: migest Check: whether package can be installed New result: ERROR Installation failed. Package: PlackettLuce Check: whether package can be installed New result: ERROR Installation failed. Package: PortfolioAnalytics Check: dependencies in R code New result: WARNING Missing or unexported object: ‘CVXR::solve’ Package: pvEBayes Check: dependencies in R code New result: WARNING Missing or unexported object: ‘CVXR::solve’ Package: pvEBayes Check: tests New result: ERROR Running ‘testthat.R’ [9s/9s] 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(pvEBayes) > > test_check("pvEBayes") Saving _problems/test-pvEBayes_main_function-132.R [ FAIL 1 | WARN 0 | SKIP 0 | PASS 51 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-pvEBayes_main_function.R:129:3'): pvEBayes ───────────────────── Error: 'solve' is not an exported object from 'namespace:CVXR' Backtrace: ▆ 1. └─pvEBayes::pvEBayes(contin_table = valid_matrix, model = "KM") at test-pvEBayes_main_function.R:129:3 2. └─pvEBayes:::.KM_fit(contin_table, E, rtol_KM = rtol_KM) 3. └─pvEBayes:::.km_eb_fit(...) 4. └─pvEBayes:::.KWDual_CVXR(A, d, w, ...) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 51 ] Error: ! Test failures. Execution halted Package: rclsp Check: tests New result: ERROR Running ‘testthat.R’ [4s/4s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(rclsp) > > test_check("rclsp") Saving _problems/test-clsp-42.R [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-clsp.R:41:3'): CMLS model (RP-type) runs and converges ───────── Error in `as.vector(x, mode)`: cannot coerce type 'object' to vector of type 'any' Backtrace: ▆ 1. └─rclsp::clsp(...) at test-clsp.R:41:3 2. ├─base::do.call(...) 3. └─rclsp (local) ``(...) 4. ├─base::do.call(...) 5. └─rclsp (local) ``(...) 6. ├─A_csc %*% z_cvx 7. └─A_csc %*% z_cvx 8. ├─(if (length(dim(y)) == 2L) as.matrix else as.vector)(y) 9. ├─(if (length(dim(y)) == 2L) as.matrix else as.vector)(y) 10. └─base::as.matrix.default(y) 11. └─base::array(...) 12. └─base::as.vector(data) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] Error: ! Test failures. Execution halted Package: Rdimtools Check: whether package can be installed New result: WARNING Found the following significant warnings: Warning: replacing previous import ‘CVXR::sd’ by ‘stats::sd’ when loading ‘Rdimtools’ Warning: replacing previous import ‘CVXR::var’ by ‘stats::var’ when loading ‘Rdimtools’ See ‘/home/hornik/tmp/CRAN_recheck/Rdimtools.Rcheck/00install.out’ for details. Used C++ compiler: ‘g++-15 (Debian 15.2.0-13) 15.2.0’ Package: Riemann Check: whether package can be installed New result: ERROR Installation failed. Package: RobustIV Check: dependencies in R code New result: WARNING Missing or unexported object: ‘CVXR::solve’ Package: scpi Check: dependencies in R code New result: WARNING Missing or unexported object: ‘CVXR::solve’ Package: scpi Check: examples New result: ERROR Running examples in ‘scpi-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: scest > ### Title: Prediction of Synthetic Control > ### Aliases: scest > > ### ** Examples > > > data <- scpi_germany > > df <- scdata(df = data, id.var = "country", time.var = "year", + outcome.var = "gdp", period.pre = (1960:1990), + period.post = (1991:2003), unit.tr = "West Germany", + unit.co = setdiff(unique(data$country), "West Germany"), + constant = TRUE, cointegrated.data = TRUE) > > result <- scest(df, w.constr = list(name = "simplex", Q = 1)) Error: 'solve' is not an exported object from 'namespace:CVXR' Execution halted Package: scpi Check: whether package can be installed New result: WARNING Found the following significant warnings: Warning: replacing previous import ‘CVXR::var’ by ‘stats::var’ when loading ‘scpi’ Warning: replacing previous import ‘CVXR::sd’ by ‘stats::sd’ when loading ‘scpi’ Package: SLSEdesign Check: dependencies in R code New result: WARNING Missing or unexported objects: ‘CVXR::diag’ ‘CVXR::solve’ Package: SLSEdesign Check: examples New result: ERROR Running examples in ‘SLSEdesign-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: Aopt > ### Title: Calculate the A-optimal design under the second-order Least > ### squares estimator > ### Aliases: Aopt > > ### ** Examples > > poly3 <- function(xi, theta){ + matrix(c(1, xi, xi^2, xi^3), ncol = 1) + } > Npt <- 101 > my_design <- Aopt(N = Npt, u = seq(-1, +1, length.out = Npt), + tt = 0, FUN = poly3, theta = rep(0,4), num_iter = 2000) Error: 'diag' is not an exported object from 'namespace:CVXR' Execution halted Package: SLSEdesign Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘SLSEdesign.Rmd’ using rmarkdown Quitting from SLSEdesign.Rmd:50-64 [Define inputs] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: ! 'diag' is not an exported object from 'namespace:CVXR' --- Backtrace: ▆ 1. └─SLSEdesign::Aopt(N = N, u = u, tt = tt, FUN = poly3, theta = theta) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'SLSEdesign.Rmd' failed with diagnostics: 'diag' is not an exported object from 'namespace:CVXR' --- failed re-building ‘SLSEdesign.Rmd’ SUMMARY: processing the following file failed: ‘SLSEdesign.Rmd’ Error: Vignette re-building failed. Execution halted Package: spBPS Check: whether package can be installed New result: ERROR Installation failed. Package: spStack Check: examples New result: ERROR Running examples in ‘spStack-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: get_stacking_weights > ### Title: Optimal stacking weights > ### Aliases: get_stacking_weights > > ### ** Examples > > set.seed(1234) > data(simGaussian) > dat <- simGaussian[1:100, ] > > mod1 <- spLMstack(y ~ x1, data = dat, + coords = as.matrix(dat[, c("s1", "s2")]), + cor.fn = "matern", + params.list = list(phi = c(1.5, 3), + nu = c(0.5, 1), + noise_sp_ratio = c(1)), + n.samples = 1000, loopd.method = "exact", + parallel = FALSE, solver = "ECOS", verbose = TRUE) Error in `method(solve_via_data, CVXR::ECOS_Solver)`: ! Package ECOSolveR is required but not installed. Backtrace: ▆ 1. └─spStack::spLMstack(...) 2. └─spStack::get_stacking_weights(loopd_mat, solver = solver) 3. └─CVXR::psolve(prob, solver = solver) 4. └─CVXR::solve_via_data(...) 5. ├─S7::S7_dispatch() 6. └─CVXR (local) `method(solve_via_data, CVXR::SolvingChain)`(...) 7. └─CVXR::solve_via_data(...) 8. ├─S7::S7_dispatch() 9. └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...) 10. └─cli::cli_abort("Package {.pkg ECOSolveR} is required but not installed.") 11. └─rlang::abort(...) Execution halted Package: spStack Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘posterior-predictive.Rmd’ using rmarkdown Quitting from posterior-predictive.Rmd:42-59 [unnamed-chunk-2] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `method(solve_via_data, CVXR::ECOS_Solver)`: ! Package ECOSolveR is required but not installed. --- Backtrace: ▆ 1. └─spStack::spLMstack(...) 2. └─spStack::get_stacking_weights(loopd_mat, solver = solver) 3. └─CVXR::psolve(prob, solver = solver) 4. └─CVXR::solve_via_data(...) 5. ├─S7::S7_dispatch() 6. └─CVXR (local) `method(solve_via_data, CVXR::SolvingChain)`(...) 7. └─CVXR::solve_via_data(...) 8. ├─S7::S7_dispatch() 9. └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'posterior-predictive.Rmd' failed with diagnostics: Package ECOSolveR is required but not installed. --- failed re-building ‘posterior-predictive.Rmd’ --- re-building ‘spStack.Rmd’ using rmarkdown Quitting from spStack.Rmd:50-59 [unnamed-chunk-4] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `method(solve_via_data, CVXR::ECOS_Solver)`: ! Package ECOSolveR is required but not installed. --- Backtrace: ▆ 1. └─spStack::spLMstack(...) 2. └─spStack::get_stacking_weights(loopd_mat, solver = solver) 3. └─CVXR::psolve(prob, solver = solver) 4. └─CVXR::solve_via_data(...) 5. ├─S7::S7_dispatch() 6. └─CVXR (local) `method(solve_via_data, CVXR::SolvingChain)`(...) 7. └─CVXR::solve_via_data(...) 8. ├─S7::S7_dispatch() 9. └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'spStack.Rmd' failed with diagnostics: Package ECOSolveR is required but not installed. --- failed re-building ‘spStack.Rmd’ --- re-building ‘spatial-temporal.Rmd’ using rmarkdown Quitting from spatial-temporal.Rmd:203-213 [unnamed-chunk-14] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `method(solve_via_data, CVXR::ECOS_Solver)`: ! Package ECOSolveR is required but not installed. --- Backtrace: ▆ 1. └─spStack::stvcGLMstack(...) 2. └─spStack::get_stacking_weights(loopd_mat, solver = solver) 3. └─CVXR::psolve(prob, solver = solver) 4. └─CVXR::solve_via_data(...) 5. ├─S7::S7_dispatch() 6. └─CVXR (local) `method(solve_via_data, CVXR::SolvingChain)`(...) 7. └─CVXR::solve_via_data(...) 8. ├─S7::S7_dispatch() 9. └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'spatial-temporal.Rmd' failed with diagnostics: Package ECOSolveR is required but not installed. --- failed re-building ‘spatial-temporal.Rmd’ --- re-building ‘spatial.Rmd’ using rmarkdown Quitting from spatial.Rmd:128-138 [spLMstack] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `method(solve_via_data, CVXR::ECOS_Solver)`: ! Package ECOSolveR is required but not installed. --- Backtrace: ▆ 1. └─spStack::spLMstack(...) 2. └─spStack::get_stacking_weights(loopd_mat, solver = solver) 3. └─CVXR::psolve(prob, solver = solver) 4. └─CVXR::solve_via_data(...) 5. ├─S7::S7_dispatch() 6. └─CVXR (local) `method(solve_via_data, CVXR::SolvingChain)`(...) 7. └─CVXR::solve_via_data(...) 8. ├─S7::S7_dispatch() 9. └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'spatial.Rmd' failed with diagnostics: Package ECOSolveR is required but not installed. --- failed re-building ‘spatial.Rmd’ --- re-building ‘technical_overview.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘technical_overview.Rmd’ SUMMARY: processing the following files failed: ‘posterior-predictive.Rmd’ ‘spStack.Rmd’ ‘spatial-temporal.Rmd’ ‘spatial.Rmd’ Error: Vignette re-building failed. Execution halted Package: starnet Check: dependencies in R code New result: WARNING Missing or unexported object: ‘CVXR::solve’ Package: starnet Check: tests New result: ERROR Running ‘testthat.R’ [7s/7s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(starnet) > > testthat::test_check(package="starnet",stop_on_warning=FALSE) Saving _problems/test-92.R [ FAIL 1 | WARN 0 | SKIP 0 | PASS 15 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test.R:92:5'): (code run outside of `test_that()`) ────────────────── Error: 'solve' is not an exported object from 'namespace:CVXR' Backtrace: ▆ 1. └─starnet:::.glm(y = list$y, X = list$X, family = family) at test.R:92:5 [ FAIL 1 | WARN 0 | SKIP 0 | PASS 15 ] Error: ! Test failures. Execution halted Package: tramnet Check: Rd cross-references New result: WARNING Missing link(s) in Rd file 'tramnet.Rd': ‘[CVXR]{solve}’ See section 'Cross-references' in the 'Writing R Extensions' manual. Package: tramnet Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘tramnet.Rnw’ using knitr Quitting from tramnet.Rnw:936-941 [BH_Linear2] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `as.vector()`: ! cannot coerce type 'object' to vector of type 'any' --- Backtrace: x 1. \-tramnet::tramnet(m0, x = x, alpha = 0, lambda = 0) 2. \-tramnet:::.tramnet_objective(...) 3. +-trdat$const$ui %*% theta 4. \-trdat$const$ui %*% theta 5. +-(if (length(dim(y)) == 2L) as.matrix else as.vector)(y) 6. +-(if (length(dim(y)) == 2L) as.matrix else as.vector)(y) 7. \-base::as.matrix.default(y) 8. \-base::array(...) 9. \-base::as.vector(data) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'tramnet.Rnw' failed with diagnostics: cannot coerce type 'object' to vector of type 'any' --- failed re-building ‘tramnet.Rnw’ SUMMARY: processing the following file failed: ‘tramnet.Rnw’ Error: Vignette re-building failed. Execution halted Package: tramnet Check: tests New result: ERROR Running ‘Colr-pen.R’ [3s/3s] Running the tests in ‘tests/Colr-pen.R’ failed. Complete output: > # Tests for COLR models > > set.seed(0) > > ## Depencies > ## IGNORE_RDIFF_BEGIN > library("tramnet") Loading required package: tram Loading required package: mlt Loading required package: basefun Loading required package: variables Loading required package: mvtnorm Loading required package: CVXR Attaching package: 'CVXR' The following objects are masked from 'package:stats': power, sd, var The following objects are masked from 'package:base': norm, outer Loading required package: mlrMBO Loading required package: mlr Loading required package: ParamHelpers Loading required package: smoof Loading required package: checkmate > library("sandwich") > > ## IGNORE_RDIFF_END > old <- options(digits = 3) > > if (require("survival") & require("TH.data")) { + ## Exact and Right censored + data("GBSG2", package = "TH.data") + GBSG2$surv <- with(GBSG2, Surv(time, cens)) + x <- matrix(1 * (GBSG2$horTh == "yes"), ncol = 1) + colnames(x) <- "horTh" + + yCOLR <- Colr(surv ~ 1, data = GBSG2, log_first = TRUE, order = 10, support = c(1e-12, max(GBSG2$time))) + modCOLR <- tramnet(yCOLR, x, lambda = 0, alpha = 0) + yCOLRb <- Colr(surv ~ horTh, data = GBSG2, log_first = TRUE, order = 10) + print(max(abs(coef(yCOLRb, with_baseline = FALSE) - + coef(modCOLR, with_baseline = FALSE)))) + print(logLik(yCOLRb)) + print(logLik(modCOLR)) + print(-modCOLR$result$value) + print(logLik(modCOLR, newdata = tramnet:::.get_tramnet_data(modCOLR)[1:10, ])) + + ## methods + print(coef(modCOLR, tol = 0, with_baseline = TRUE)) + print(logLik(modCOLR)) + print(c(resid(modCOLR)[1:10])) + print(predict(modCOLR, type = "distribution", q = 1)[, 1:10]) + print(predict(modCOLR, type = "quantile", prob = 0.5)[, 1:10]) + print.default(head(simulate(modCOLR))) + print(as.data.frame(head(estfun(modCOLR)))) + plot(modCOLR, type = "survivor") + plot(modCOLR, type = "density", K = 120) + print(modCOLR) + } Loading required package: survival Loading required package: TH.data Loading required package: MASS Attaching package: 'MASS' The following object is masked from 'package:CVXR': huber Attaching package: 'TH.data' The following object is masked from 'package:MASS': geyser Error in as.vector(x, mode) : cannot coerce type 'object' to vector of type 'any' Calls: tramnet ... -> as.matrix.default -> array -> as.vector Execution halted Package: transreg Check: dependencies in R code New result: WARNING Missing or unexported objects: ‘CVXR::diff’ ‘CVXR::solve’ Package: transreg Check: tests New result: ERROR Running ‘testthat.R’ [2s/2s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(transreg) > > testthat::test_check(package="transreg",stop_on_warning=FALSE) Saving _problems/test-26.R [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test.R:26:3'): (code run outside of `test_that()`) ────────────────── Error: 'diff' is not an exported object from 'namespace:CVXR' Backtrace: ▆ 1. └─transreg:::.iso.slow.single(...) at test.R:26:3 [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1 ] Error: ! Test failures. Execution halted Package: wdnet Check: whether package can be installed New result: ERROR Installation failed. Package: WRI Check: dependencies in R code New result: WARNING Missing or unexported object: ‘CVXR::diff’