Running ‘testthat.R’ [95s/311s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > Sys.setenv("OMP_THREAD_LIMIT" = 2)
  > Sys.setenv("Ncpu" = 2)
  > 
  > library(testthat)
  > library(mlsurvlrnrs)
  > 
  > test_check("mlsurvlrnrs")
  
  CV fold: Fold1
  Parameter 'ncores' is ignored for learner 'LearnerSurvCoxPHCox'.
  
  CV fold: Fold2
  Parameter 'ncores' is ignored for learner 'LearnerSurvCoxPHCox'.
  
  CV fold: Fold3
  Parameter 'ncores' is ignored for learner 'LearnerSurvCoxPHCox'.
  
  CV fold: Fold1
  
  Registering parallel backend using 2 cores.
  
  Running initial scoring function 6 times in 2 thread(s)...  6.851 seconds
  
  Starting Epoch 1 
    1) Fitting Gaussian Process...
    2) Running local optimum search...        1.238 seconds
    3) Running FUN 2 times in 2 thread(s)...  1.162 seconds
  
  CV fold: Fold2
  
  Registering parallel backend using 2 cores.
  
  Running initial scoring function 6 times in 2 thread(s)...  6.245 seconds
  
  Starting Epoch 1 
    1) Fitting Gaussian Process...
    2) Running local optimum search...        1.466 seconds
    3) Running FUN 2 times in 2 thread(s)...  1.164 seconds
  
  CV fold: Fold3
  
  Registering parallel backend using 2 cores.
  
  Running initial scoring function 6 times in 2 thread(s)...  5.49 seconds
  
  Starting Epoch 1 
    1) Fitting Gaussian Process...
    2) Running local optimum search...        0.736 seconds
    3) Running FUN 2 times in 2 thread(s)...  0.777 seconds
  
  CV fold: Fold1
  
  Number of rows of initialization grid > than 'options("mlexperiments.bayesian.max_init")'...
  ... reducing initialization grid to 10 rows.
  
  Registering parallel backend using 2 cores.
  
  Running initial scoring function 10 times in 2 thread(s)...  7.787 seconds
  
  Starting Epoch 1 
    1) Fitting Gaussian Process...
       - Could not obtain meaningful lengthscales.
    2) Running local optimum search...
       - Convergence Not Found. Trying again with tighter parameters...
       - Convergence Not Found. Trying again with tighter parameters...        10.502 seconds
    3) Running FUN 2 times in 2 thread(s)...  0.758 seconds
  
  CV fold: Fold2
  
  Number of rows of initialization grid > than 'options("mlexperiments.bayesian.max_init")'...
  ... reducing initialization grid to 10 rows.
  
  Registering parallel backend using 2 cores.
  
  Running initial scoring function 10 times in 2 thread(s)...  5.735 seconds
  
  Starting Epoch 1 
    1) Fitting Gaussian Process...
    2) Running local optimum search...        14.874 seconds
    3) Running FUN 2 times in 2 thread(s)...  0.795 seconds
  
  CV fold: Fold3
  
  Number of rows of initialization grid > than 'options("mlexperiments.bayesian.max_init")'...
  ... reducing initialization grid to 10 rows.
  
  Registering parallel backend using 2 cores.
  
  Running initial scoring function 10 times in 2 thread(s)...  5.179 seconds
  
  Starting Epoch 1 
    1) Fitting Gaussian Process...
       - Could not obtain meaningful lengthscales.
    2) Running local optimum search...        0.893 seconds
    3) Running FUN 2 times in 2 thread(s)...  0.813 seconds
  
  CV fold: Fold1
  
  Number of rows of initialization grid > than 'options("mlexperiments.bayesian.max_init")'...
  ... reducing initialization grid to 10 rows.
  
  Registering parallel backend using 2 cores.
  
  Running initial scoring function 10 times in 2 thread(s)...  4.523 seconds
  
  Starting Epoch 1 
    1) Fitting Gaussian Process...
    2) Running local optimum search...        0.839 seconds
    3) Running FUN 2 times in 2 thread(s)...  0.51 seconds
  
  CV fold: Fold2
  
  Number of rows of initialization grid > than 'options("mlexperiments.bayesian.max_init")'...
  ... reducing initialization grid to 10 rows.
  
  Registering parallel backend using 2 cores.
  
  Running initial scoring function 10 times in 2 thread(s)...  6.457 seconds
  
  Starting Epoch 1 
    1) Fitting Gaussian Process...
    2) Running local optimum search...        0.71 seconds
    3) Running FUN 2 times in 2 thread(s)...  0.722 seconds
  
  CV fold: Fold3
  
  Number of rows of initialization grid > than 'options("mlexperiments.bayesian.max_init")'...
  ... reducing initialization grid to 10 rows.
  
  Registering parallel backend using 2 cores.
  
  Running initial scoring function 10 times in 2 thread(s)...  4.957 seconds
  
  Starting Epoch 1 
    1) Fitting Gaussian Process...
    2) Running local optimum search...        0.911 seconds
    3) Running FUN 2 times in 2 thread(s)...  0.562 seconds
  
  CV fold: Fold1
  
  Number of rows of initialization grid > than 'options("mlexperiments.bayesian.max_init")'...
  ... reducing initialization grid to 10 rows.
  
  Registering parallel backend using 2 cores.
  
  Running initial scoring function 10 times in 2 thread(s)...  6.431 seconds
  
  Starting Epoch 1 
    1) Fitting Gaussian Process...
    2) Running local optimum search...        10.601 seconds
    3) Running FUN 2 times in 2 thread(s)...  0.641 seconds
  
  CV fold: Fold2
  
  Number of rows of initialization grid > than 'options("mlexperiments.bayesian.max_init")'...
  ... reducing initialization grid to 10 rows.
  
  Registering parallel backend using 2 cores.
  
  Running initial scoring function 10 times in 2 thread(s)...  5.659 seconds
  
  Starting Epoch 1 
    1) Fitting Gaussian Process...
    2) Running local optimum search...        11.341 seconds
    3) Running FUN 2 times in 2 thread(s)...  0.613 seconds
  
  CV fold: Fold3
  
  Number of rows of initialization grid > than 'options("mlexperiments.bayesian.max_init")'...
  ... reducing initialization grid to 10 rows.
  
  Registering parallel backend using 2 cores.
  
  Running initial scoring function 10 times in 2 thread(s)...  6.544 seconds
  
  Starting Epoch 1 
    1) Fitting Gaussian Process...
    2) Running local optimum search...        6.119 seconds
    3) Running FUN 2 times in 2 thread(s)...  1.085 seconds
  
  CV fold: Fold1
  
  Number of rows of initialization grid > than 'options("mlexperiments.bayesian.max_init")'...
  ... reducing initialization grid to 10 rows.
  
  Registering parallel backend using 2 cores.
  
  Running initial scoring function 10 times in 2 thread(s)...  4.729 seconds
  
  Starting Epoch 1 
    1) Fitting Gaussian Process...
       - Could not obtain meaningful lengthscales.
    2) Running local optimum search...
       - Convergence Not Found. Trying again with tighter parameters...
       - Convergence Not Found. Trying again with tighter parameters...
       - Convergence Not Found. Trying again with tighter parameters...
       - Maximum convergence attempts exceeded - process is probably sampling random points.        86.157 seconds
    3) Running FUN 2 times in 2 thread(s)...  0.429 seconds
  
  CV fold: Fold2
  
  Number of rows of initialization grid > than 'options("mlexperiments.bayesian.max_init")'...
  ... reducing initialization grid to 10 rows.
  
  Registering parallel backend using 2 cores.
  
  Running initial scoring function 10 times in 2 thread(s)...  3.828 seconds
  
  Starting Epoch 1 
    1) Fitting Gaussian Process...
    2) Running local optimum search...        7.532 seconds
    3) Running FUN 2 times in 2 thread(s)...  0.4 seconds
  
  CV fold: Fold3
  
  Number of rows of initialization grid > than 'options("mlexperiments.bayesian.max_init")'...
  ... reducing initialization grid to 10 rows.
  
  Registering parallel backend using 2 cores.
  
  Running initial scoring function 10 times in 2 thread(s)...  3.794 seconds
  
  Starting Epoch 1 
    1) Fitting Gaussian Process...
    2) Running local optimum search...        2.162 seconds
    3) Running FUN 2 times in 2 thread(s)...  0.712 seconds
  [ FAIL 6 | WARN 0 | SKIP 1 | PASS 0 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-lints.R:10:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-surv_coxph_cox.R:56:5'): test cv - surv_coxph_cox ──────────────
  Error: Package "measures" must be installed to use function 'metric_types_helper()'.
  Backtrace:
      ▆
   1. └─surv_coxph_cox_optimizer$execute() at test-surv_coxph_cox.R:56:5
   2.   └─mlexperiments:::.run_cv(self = self, private = private)
   3.     └─mlexperiments:::.cv_postprocessing(...)
   4.       └─mlexperiments:::.compute_performance(...)
   5.         └─base::sapply(...)
   6.           └─base::lapply(X = X, FUN = FUN, ...)
   7.             └─mlexperiments (local) FUN(X[[i]], ...)
   8.               └─mlexperiments::metric_types_helper(...)
  ── Error ('test-surv_glmnet_cox.R:99:5'): test nested cv, grid - surv_glmnet_cox ──
  Error: Package "measures" must be installed to use function 'metric_types_helper()'.
  Backtrace:
      ▆
   1. └─surv_glmnet_cox_optimizer$execute() at test-surv_glmnet_cox.R:99:5
   2.   └─mlexperiments:::.run_cv(self = self, private = private)
   3.     └─mlexperiments:::.cv_postprocessing(...)
   4.       └─mlexperiments:::.compute_performance(...)
   5.         └─base::sapply(...)
   6.           └─base::lapply(X = X, FUN = FUN, ...)
   7.             └─mlexperiments (local) FUN(X[[i]], ...)
   8.               └─mlexperiments::metric_types_helper(...)
  ── Error ('test-surv_ranger_cox.R:110:5'): test nested cv, bayesian - surv_ranger_cox ──
  Error: Package "measures" must be installed to use function 'metric_types_helper()'.
  Backtrace:
      ▆
   1. └─surv_ranger_cox_optimizer$execute() at test-surv_ranger_cox.R:110:5
   2.   └─mlexperiments:::.run_cv(self = self, private = private)
   3.     └─mlexperiments:::.cv_postprocessing(...)
   4.       └─mlexperiments:::.compute_performance(...)
   5.         └─base::sapply(...)
   6.           └─base::lapply(X = X, FUN = FUN, ...)
   7.             └─mlexperiments (local) FUN(X[[i]], ...)
   8.               └─mlexperiments::metric_types_helper(...)
  ── Error ('test-surv_rpart_cox.R:108:5'): test nested cv, bayesian - surv_rpart_cox ──
  Error: Package "measures" must be installed to use function 'metric_types_helper()'.
  Backtrace:
      ▆
   1. └─surv_rpart_cox_optimizer$execute() at test-surv_rpart_cox.R:108:5
   2.   └─mlexperiments:::.run_cv(self = self, private = private)
   3.     └─mlexperiments:::.cv_postprocessing(...)
   4.       └─mlexperiments:::.compute_performance(...)
   5.         └─base::sapply(...)
   6.           └─base::lapply(X = X, FUN = FUN, ...)
   7.             └─mlexperiments (local) FUN(X[[i]], ...)
   8.               └─mlexperiments::metric_types_helper(...)
  ── Error ('test-surv_xgboost_aft.R:116:5'): test nested cv, bayesian - surv_xgboost_aft ──
  Error: Package "measures" must be installed to use function 'metric_types_helper()'.
  Backtrace:
      ▆
   1. └─surv_xgboost_aft_optimizer$execute() at test-surv_xgboost_aft.R:116:5
   2.   └─mlexperiments:::.run_cv(self = self, private = private)
   3.     └─mlexperiments:::.cv_postprocessing(...)
   4.       └─mlexperiments:::.compute_performance(...)
   5.         └─base::sapply(...)
   6.           └─base::lapply(X = X, FUN = FUN, ...)
   7.             └─mlexperiments (local) FUN(X[[i]], ...)
   8.               └─mlexperiments::metric_types_helper(...)
  ── Error ('test-surv_xgboost_cox.R:115:5'): test nested cv, bayesian - surv_xgboost_cox ──
  Error: Package "measures" must be installed to use function 'metric_types_helper()'.
  Backtrace:
      ▆
   1. └─surv_xgboost_cox_optimizer$execute() at test-surv_xgboost_cox.R:115:5
   2.   └─mlexperiments:::.run_cv(self = self, private = private)
   3.     └─mlexperiments:::.cv_postprocessing(...)
   4.       └─mlexperiments:::.compute_performance(...)
   5.         └─base::sapply(...)
   6.           └─base::lapply(X = X, FUN = FUN, ...)
   7.             └─mlexperiments (local) FUN(X[[i]], ...)
   8.               └─mlexperiments::metric_types_helper(...)
  
  [ FAIL 6 | WARN 0 | SKIP 1 | PASS 0 ]
  Error: Test failures
  Execution halted