* using log directory 'd:/RCompile/CRANincoming/R-devel/mlr3viz.Rcheck' * using R Under development (unstable) (2024-06-24 r86823 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'mlr3viz/DESCRIPTION' ... OK * this is package 'mlr3viz' version '0.9.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... [10s] Note_to_CRAN_maintainers Maintainer: 'Michel Lang ' * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking serialization versions ... OK * checking whether package 'mlr3viz' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking whether startup messages can be suppressed ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... WARNING Missing link or links in Rd file 'autoplot.TuningInstanceBatchSingleCrit.Rd': '[mlr3tuning:TuningInstanceBatchSingleCrit]{mlr3tuning::TuningInstanceBatchSingleCrit}' See section 'Cross-references' in the 'Writing R Extensions' manual. * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... [21s] ERROR Running examples in 'mlr3viz-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: autoplot.TuningInstanceBatchSingleCrit > ### Title: Plots for Tuning Instances > ### Aliases: autoplot.TuningInstanceBatchSingleCrit > > ### ** Examples > > if (requireNamespace("mlr3tuning") && requireNamespace("patchwork")) { + library(mlr3tuning) + + learner = lrn("classif.rpart") + learner$param_set$values$cp = to_tune(0.001, 0.1) + learner$param_set$values$minsplit = to_tune(1, 10) + + instance = ti( + task = tsk("iris"), + learner = learner, + resampling = rsmp("holdout"), + measure = msr("classif.ce"), + terminator = trm("evals", n_evals = 10)) + + tuner = tnr("random_search") + + tuner$optimize(instance) + + # plot performance versus batch number + autoplot(instance, type = "performance") + + # plot cp values versus performance + autoplot(instance, type = "marginal", cols_x = "cp") + + # plot transformed parameter values versus batch number + autoplot(instance, type = "parameter", trafo = TRUE) + + # plot parallel coordinates plot + autoplot(instance, type = "parallel") + + # plot pairs + autoplot(instance, type = "pairs") + } Loading required namespace: mlr3tuning Loading required package: mlr3 Loading required package: paradox OptimInstanceSingleCrit is deprecated. Use OptimInstanceBatchSingleCrit instead. Error in .__TunerRandomSearch__initialize(self = self, private = private, : object 'OptimizerRandomSearch' not found Calls: tnr ... .__TunerFromOptimizer__initialize -> assert_optimizer -> assert_r6 -> checkR6 Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [20s] ERROR Running 'testthat.R' [20s] Running the tests in 'tests/testthat.R' failed. Complete output: > if (requireNamespace("testthat", quietly = TRUE)) { + library("testthat") + library("mlr3viz") + test_check("mlr3viz") + } Starting 2 test processes [ FAIL 1 | WARN 0 | SKIP 27 | PASS 87 ] ══ Skipped tests (27) ══════════════════════════════════════════════════════════ • On CRAN (27): 'test_EnsembleFSResult.R:24:3', 'test_Filter.R:10:3', 'test_LearnerClassif.R:8:3', 'test_LearnerClassif.R:18:3', 'test_BenchmarkResult.R:20:3', 'test_BenchmarkResult.R:49:3', 'test_LearnerClassifRpart.R:10:3', 'test_LearnerClassifCVGlmnet.R:13:3', 'test_LearnerClustHierarchical.R:7:3', 'test_LearnerClasssifGlmnet.R:13:3', 'test_LearnerRegrCVGlmnet.R:13:3', 'test_LearnerRegr.R:8:3', 'test_LearnerRegr.R:18:3', 'test_LearnerRegr.R:28:3', 'test_LearnerRegrGlmnet.R:12:3', 'test_LearnerRegrRpart.R:10:3', 'test_OptimInstanceSingleCrit.R:47:7', 'test_PredictionClassif.R:11:3', 'test_PredictionRegr.R:10:3', 'test_PredictionClust.R:8:3', 'test_TaskClassif.R:8:3', 'test_TaskClust.R:10:3', 'test_TaskRegr.R:8:3', 'test_plot_learner_prediction.R:10:3', 'test_plot_learner_prediction.R:43:3', 'test_plot_learner_prediction.R:53:3', 'test_ResampleResult.R:21:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_TuningInstanceSingleCrit.R:16:1'): (code run outside of `test_that()`) ── Error in `eval(code, test_env)`: object 'TuningInstanceBatchSingleCrit' not found [ FAIL 1 | WARN 0 | SKIP 27 | PASS 87 ] Deleting unused snapshots: • BenchmarkResult/bmr-prc.svg • BenchmarkResult/bmr-roc.svg • EnsembleFSResult/pareto-estimated.svg • EnsembleFSResult/pareto-n-features.svg • EnsembleFSResult/pareto-performance.svg • EnsembleFSResult/pareto-stability.svg • Filter/filter-2.svg • LearnerClustHierarchical/learner-clust-agnes.svg • LearnerClustHierarchical/learner-clust-hclust.svg • OptimInstanceSingleCrit/tisc-marginal-02.svg • OptimInstanceSingleCrit/tisc-marginal-trafo-01.svg • OptimInstanceSingleCrit/tisc-marginal-trafo-02.svg • OptimInstanceSingleCrit/tisc-marginal-x-domain-01.svg • OptimInstanceSingleCrit/tisc-parallel.svg • OptimInstanceSingleCrit/tisc-parameter-01.svg • OptimInstanceSingleCrit/tisc-parameter-02.svg • OptimInstanceSingleCrit/tisc-parameter-return-list-01.svg • OptimInstanceSingleCrit/tisc-parameter-return-list-02.svg • OptimInstanceSingleCrit/tisc-parameter-trafo-01.svg • OptimInstanceSingleCrit/tisc-parameter-trafo-02.svg • OptimInstanceSingleCrit/tisc-parameter-x-domain-01.svg • OptimInstanceSingleCrit/tisc-performance.svg • OptimInstanceSingleCrit/tisc-points.svg • OptimInstanceSingleCrit/tisc-surface-grid-50.svg • OptimInstanceSingleCrit/tisc-surface-regr-lm.svg • OptimInstanceSingleCrit/tisc-surface.svg • PredictionClassif/predictionclassif-prc.svg • PredictionClassif/predictionclassif-roc.svg • PredictionClassif/predictionclassif-threshold.svg • PredictionClust/predictionclust-pca.svg • PredictionClust/predictionclust-sil.svg • PredictionRegr/predictionregr-confidence.svg • PredictionRegr/predictionregr-histogram.svg • PredictionRegr/predictionregr-residual.svg • ResampleResult/resampleresult-histogram.svg • ResampleResult/resampleresult-prc.svg • ResampleResult/resampleresult-roc.svg • TaskClassif/taskclassif-duo.svg • TuningInstanceSingleCrit/tisc-incumbent.svg • TuningInstanceSingleCrit/tisc-marginal-01.svg • TuningInstanceSingleCrit/tisc-marginal-02.svg • TuningInstanceSingleCrit/tisc-marginal-trafo-01.svg • TuningInstanceSingleCrit/tisc-marginal-trafo-02.svg • TuningInstanceSingleCrit/tisc-marginal-x-domain-01.svg • TuningInstanceSingleCrit/tisc-parallel.svg • TuningInstanceSingleCrit/tisc-parameter-01.svg • TuningInstanceSingleCrit/tisc-parameter-02.svg • TuningInstanceSingleCrit/tisc-parameter-return-list-01.svg • TuningInstanceSingleCrit/tisc-parameter-return-list-02.svg • TuningInstanceSingleCrit/tisc-parameter-trafo-01.svg • TuningInstanceSingleCrit/tisc-parameter-trafo-02.svg • TuningInstanceSingleCrit/tisc-parameter-x-domain-01.svg • TuningInstanceSingleCrit/tisc-performance.svg • TuningInstanceSingleCrit/tisc-points.svg • TuningInstanceSingleCrit/tisc-surface-grid-50.svg • TuningInstanceSingleCrit/tisc-surface-regr-lm.svg • TuningInstanceSingleCrit/tisc-surface.svg • plot_learner_prediction/learner-prediction-1d-se.svg • plot_learner_prediction/learner-prediction-binary-prob.svg • plot_learner_prediction/learner-prediction-binary-response.svg • plot_learner_prediction/learner-prediction-categorical.svg • plot_learner_prediction/learner-prediction-prob.svg Error: Test failures Execution halted * checking PDF version of manual ... [14s] OK * checking HTML version of manual ... OK * DONE Status: 2 ERRORs, 1 WARNING