* using log directory 'd:/Rcompile/CRANpkg/local/4.7/anticlust.Rcheck' * using R Under development (unstable) (2026-05-01 r89993 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-05-03 09:42:37 UTC * checking for file 'anticlust/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'anticlust' version '0.8.14' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... INFO Package suggested but not available for checking: 'gurobi' * 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 whether package 'anticlust' can be installed ... OK * used C compiler: 'gcc.exe (GCC) 14.3.0' * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... 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 ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [2s] 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 ... [10s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compiled code ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [3s] ERROR Running examples in 'anticlust-Ex.R' failed The error most likely occurred in: > ### Name: anticlustering > ### Title: Anticlustering > ### Aliases: anticlustering > > ### ** Examples > > > # Use default method ("exchange") and the default diversity criterion, also include > # a categorical variable via argument `categories`: > anticlusters <- anticlustering( + schaper2019[, 3:6], + K = 3, + categories = schaper2019$room + ) > # Compare feature means and standard deviations by anticluster > mean_sd_tab(schaper2019[, 3:6], anticlusters) rating_consistent rating_inconsistent syllables frequency 1 "4.50 (0.23)" "1.10 (0.07)" "3.47 (0.95)" "18.34 (2.40)" 2 "4.49 (0.27)" "1.12 (0.07)" "3.41 (0.87)" "18.28 (2.47)" 3 "4.49 (0.25)" "1.10 (0.05)" "3.38 (0.98)" "18.31 (2.36)" > # Verify that the "room" is balanced across anticlusters: > table(anticlusters, schaper2019$room) anticlusters bathroom kitchen 1 16 16 2 16 16 3 16 16 > > # Use multiple starts of the algorithm to improve the objective and > # optimize the k-means criterion ("variance") > anticlusters <- anticlustering( + schaper2019[, 3:6], + objective = "variance", + K = 3, + categories = schaper2019$room, + method = "local-maximum", # better search algorithm + repetitions = 20 # multiple restarts of the algorithm + ) > # Compare means and standard deviations by anticluster > mean_sd_tab(schaper2019[, 3:6], anticlusters) rating_consistent rating_inconsistent syllables frequency 1 "4.49 (0.26)" "1.10 (0.07)" "3.41 (0.91)" "18.31 (2.47)" 2 "4.49 (0.25)" "1.10 (0.06)" "3.44 (0.95)" "18.31 (2.39)" 3 "4.49 (0.25)" "1.10 (0.07)" "3.41 (0.95)" "18.31 (2.38)" > > # Use different group sizes and optimize the extended k-means > # criterion ("kplus") > anticlusters <- anticlustering( + schaper2019[, 3:6], + objective = "kplus", + K = c(24, 24, 48), + categories = schaper2019$room, + repetitions = 20, + method = "local-maximum", + standardize = TRUE # ususally recommended + ) > > # Use cannot_link constraints: Element 1 must not be linked with elements 2 to 10: > cl_matrix <- matrix(c(rep(1, 9), 2:10), ncol = 2) > cl <- anticlustering( + schaper2019[, 3:6], + K = 10, + cannot_link = cl_matrix + ) Error in as.data.frame.integer(x[[i]], optional = TRUE) : row names contain missing values Calls: anticlustering ... data.frame -> as.data.frame -> as.data.frame.integer Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [4s] ERROR Running 'tinytest.R' [4s] Running the tests in 'tests/tinytest.R' failed. Complete output: > > if ( requireNamespace("tinytest", quietly=TRUE) ){ + library(tinytest) + library(anticlust) + tinytest::test_package("anticlust") + } test-2pml.R................... 0 tests test-2pml.R................... 0 tests test-2pml.R................... 0 tests test-2pml.R................... 0 tests test-2pml.R................... 0 tests test-2pml.R................... 0 tests test-2pml.R................... 1 tests OK test-2pml.R................... 2 tests OK test-2pml.R................... 3 tests OK test-2pml.R................... 4 tests OK test-2pml.R................... 4 tests OK test-2pml.R................... 4 tests OK test-2pml.R................... 5 tests OK test-2pml.R................... 5 tests OK test-2pml.R................... 6 tests OK test-2pml.R................... 7 tests OK test-2pml.R................... 7 tests OK test-2pml.R................... 7 tests OK test-2pml.R................... 8 tests OK test-2pml.R................... 9 tests OK test-2pml.R................... 10 tests OK test-2pml.R................... 10 tests OK test-2pml.R................... 10 tests OK test-2pml.R................... 10 tests OK test-2pml.R................... 11 tests OK test-2pml.R................... 12 tests OK test-2pml.R................... 13 tests OK test-2pml.R................... 13 tests OK test-2pml.R................... 13 tests OK test-2pml.R................... 13 tests OK test-2pml.R................... 13 tests OK test-2pml.R................... 13 tests OK test-2pml.R................... 14 tests OK test-2pml.R................... 15 tests OK test-2pml.R................... 15 tests OK test-2pml.R................... 15 tests OK test-2pml.R................... 15 tests OK test-2pml.R................... 15 tests OK test-2pml.R................... 15 tests OK test-2pml.R................... 16 tests OK test-2pml.R................... 17 tests OK test-2pml.R................... 17 tests OK test-2pml.R................... 17 tests OK test-2pml.R................... 17 tests OK test-2pml.R................... 17 tests OK test-2pml.R................... 17 tests OK test-2pml.R................... 18 tests OK test-2pml.R................... 18 tests OK test-2pml.R................... 18 tests OK test-2pml.R................... 18 tests OK test-2pml.R................... 18 tests OK test-2pml.R................... 21 tests OK test-2pml.R................... 21 tests OK test-2pml.R................... 21 tests OK test-2pml.R................... 21 tests OK test-2pml.R................... 21 tests OK test-2pml.R................... 21 tests OK test-2pml.R................... 21 tests OK test-2pml.R................... 21 tests OK test-2pml.R................... 21 tests OK test-2pml.R................... 22 tests OK test-2pml.R................... 22 tests OK test-2pml.R................... 22 tests OK test-2pml.R................... 22 tests OK test-2pml.R................... 22 tests OK 2.0s test-NAs.R.................... 0 tests test-NAs.R.................... 0 tests test-NAs.R.................... 0 tests test-NAs.R.................... 0 tests test-NAs.R.................... 0 tests test-NAs.R.................... 0 tests test-NAs.R.................... 0 tests test-NAs.R.................... 0 tests test-NAs.R.................... 0 tests test-NAs.R.................... 0 tests test-NAs.R.................... 0 tests test-NAs.R.................... 0 tests test-NAs.R.................... 0 tests test-NAs.R.................... 1 tests OK test-NAs.R.................... 1 tests OK test-NAs.R.................... 1 tests OK test-NAs.R.................... 2 tests OK 44ms test-argument-K.R............. 0 tests test-argument-K.R............. 0 tests test-argument-K.R............. 1 tests OK test-argument-K.R............. 2 tests OK test-argument-K.R............. 2 tests OK test-argument-K.R............. 3 tests OK test-argument-K.R............. 3 tests OK test-argument-K.R............. 4 tests OK test-argument-K.R............. 4 tests OK test-argument-K.R............. 5 tests OK test-argument-K.R............. 6 tests OK test-argument-K.R............. 7 tests OK test-argument-K.R............. 8 tests OK test-argument-K.R............. 9 tests OK 57ms test-blocked-anticlustering.R. 0 tests test-blocked-anticlustering.R. 0 tests test-blocked-anticlustering.R. 0 tests test-blocked-anticlustering.R. 0 tests test-blocked-anticlustering.R. 0 tests Error in as.data.frame.integer(x[[i]], optional = TRUE) : row names contain missing values Calls: ... data.frame -> as.data.frame -> as.data.frame.integer In addition: Warning messages: 1: In 1:K : numerical expression has 2 elements: only the first used 2: In 1:K : numerical expression has 6 elements: only the first used Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [59s] ERROR Error(s) in re-building vignettes: --- re-building 'Anticlustering_in_2025.Rmd' using rmarkdown --- finished re-building 'Anticlustering_in_2025.Rmd' --- re-building 'Best_practices.Rmd' using rmarkdown --- finished re-building 'Best_practices.Rmd' --- re-building 'Categorical_vars.Rmd' using rmarkdown Quitting from Categorical_vars.Rmd:139-159 [unnamed-chunk-11] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `as.data.frame.integer()`: ! row names contain missing values --- Backtrace: ▆ 1. └─anticlust::anticlustering(...) 2. └─anticlust:::blocked_anticlustering(...) 3. └─anticlust:::add_unassigned_elements(...) 4. ├─base::as.data.frame(table(init, useNA = "always")) 5. └─base::as.data.frame.table(table(init, useNA = "always")) 6. ├─base::eval(ex) 7. │ └─base::eval(ex) 8. └─base::data.frame(...) 9. ├─base::as.data.frame(x[[i]], optional = TRUE) 10. └─base::as.data.frame.integer(x[[i]], optional = TRUE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'Categorical_vars.Rmd' failed with diagnostics: row names contain missing values --- failed re-building 'Categorical_vars.Rmd' --- re-building 'Speeding_up_anticlustering.Rmd' using rmarkdown --- finished re-building 'Speeding_up_anticlustering.Rmd' --- re-building 'stimulus-selection.Rmd' using rmarkdown --- finished re-building 'stimulus-selection.Rmd' SUMMARY: processing the following file failed: 'Categorical_vars.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [28s] OK * checking HTML version of manual ... [8s] OK * DONE Status: 3 ERRORs