* using log directory ‘/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/kappalab.Rcheck’ * using R Under development (unstable) (2024-04-27 r86487) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 18.1.4 (1) Debian flang-new version 18.1.4 (1) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘kappalab/DESCRIPTION’ ... OK * this is package ‘kappalab’ version ‘0.4-12’ * package encoding: UTF-8 * 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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking serialization versions ... OK * checking whether package ‘kappalab’ can be installed ... OK See 'https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-clang/kappalab-00install.html' for details. * used C compiler: ‘Debian clang version 18.1.4 (1)’ * 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 ... [1s/2s] OK * checking whether the package can be loaded with stated dependencies ... [1s/2s] OK * checking whether the package can be unloaded cleanly ... [1s/2s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s/2s] OK * checking whether the namespace can be unloaded cleanly ... [2s/2s] OK * checking loading without being on the library search path ... [1s/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 ... [18s/21s] OK * checking Rd files ... [1s/1s] OK * checking Rd metadata ... OK * checking Rd line widths ... 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 line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking examples ... [3s/4s] OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [46s/60s] ERROR Running ‘Choquet.integral-methods.R’ [1s/2s] Running ‘Mobius-methods.R’ [1s/2s] Running ‘Mobius.capacity-class.R’ [2s/2s] Running ‘Mobius.card.set.func-class.R’ [2s/2s] Running ‘Mobius.game-class.R’ [1s/2s] Running ‘Mobius.set.func-class.R’ [1s/2s] Running ‘Shapley.value-methods.R’ [1s/2s] Running ‘capacity-class.R’ [1s/2s] Running ‘card.capacity-class.R’ [2s/2s] Running ‘card.game-class.R’ [1s/2s] Running ‘card.set.func-class.R’ [1s/2s] Running ‘conjugate-methods.R’ [1s/2s] Running ‘entropy-methods.R’ [2s/2s] Running ‘entropy.capa.ident.R’ [2s/2s] Running ‘heuristic.ls.capa.ident.R’ [2s/3s] Running ‘interaction.indices-methods.R’ [2s/2s] Running ‘is.cardinal-methods.R’ [2s/2s] Running ‘is.kadditive-methods.R’ [1s/2s] Running ‘is.monotone-methods.R’ [1s/2s] Running ‘k.truncate.Mobius-methods.R’ [1s/2s] Running ‘least.squares.capa.ident.R’ [2s/3s] Running ‘lin.prog.capa.ident.R’ [1s/2s] Running ‘ls.sorting.treatment.R’ [2s/2s] Running ‘mini.dist.capa.ident.R’ [2s/2s] Running ‘mini.var.capa.ident.R’ [1s/2s] Running ‘orness-methods.R’ [1s/2s] Running ‘set.func-class.R’ [1s/2s] Running ‘to.data.frame-methods.R’ [1s/2s] Running ‘variance-methods.R’ [1s/2s] Running ‘veto-methods.R’ [2s/2s] Running the tests in ‘tests/ls.sorting.treatment.R’ failed. Complete output: > library(kappalab) Loading required package: lpSolve Loading required package: quadprog Loading required package: kernlab > > ## n : number of criteria, here 4 > ## k : search for a k-additive solution > ## d : minimal distance between 2 classes > ## t : number of prototypes > ## n.var.alt.A : number of elements of A > > ## generate a random problem with "n.var.alt" alternatives and 4 criteria > ## n.var.alt <- 30 ## alternatives > k <- 4 > d <- 0.1 > n.var.alt <- 10 > n.var.alt.A <- 10 > n <- 4 ## criteria > > print("Number of prototypes: ") [1] "Number of prototypes: " > print(n.var.alt) [1] 10 > print("Number of criteria: ") [1] "Number of criteria: " > print(n) [1] 4 > print("Number of elements of A: ") [1] "Number of elements of A: " > print(n.var.alt.A) [1] 10 > print("Epsilon: ") [1] "Epsilon: " > print(d) [1] 0.1 > print("k: ") [1] "k: " > print(k) [1] 4 > > print("*** Generating the data for the prototypes") [1] "*** Generating the data for the prototypes" > P <- matrix(runif(n.var.alt*n,0,1),n.var.alt,n) > cl.proto<-numeric(n.var.alt) > > ## the corresponding global scores > glob.eval <- numeric(n.var.alt) > a <- capacity(c(0:(2^n-3),(2^n-3),(2^n-3))/(2^n-3)) > for (i in 1:n.var.alt) + glob.eval[i] <- Choquet.integral(a,P[i,]) > > cl.proto[glob.eval <= 0.33] <- 1 > > ## decomment here if there should be errors in the > ## classification of the prototypees > # cl.proto[glob.eval > 0.33 & glob.eval<=0.44] <-2 > # cl.proto[glob.eval > 0.44 & glob.eval<=0.55] <-1 > # cl.proto[glob.eval > 0.55 & glob.eval<=0.66] <-2 > > cl.proto[glob.eval>0.33 & glob.eval<=0.66] <-2 > > cl.proto[glob.eval > 0.66] <- 3 > > ## a Shapley preorder constraint matrix > ## Sh(1) > Sh(2) > ## Sh(3) > Sh(4) > delta.S <-0.01 > Asp <- rbind(c(1,2,delta.S), c(3,4,delta.S)) > # Asp <- NULL > > ## a Shapley interval constraint matrix > ## 0.3 <= Sh(1) <= 0.9 > # Asi <- rbind(c(1,0.1,0.2)) > Asi <- NULL > > ## an interaction preorder constraint matrix > ## such that I(12) > I(34) > delta.I <- 0.01 > Aip <- rbind(c(1,2,3,4,delta.I)) > # Aip <- NULL > > ## an interaction interval constraint matrix > ## i.e. 0.2 <= I(12) <= 0.4 > ## delta.I <- 0.01 > # Aii <- rbind(c(1,2,0.2,0.4)) > Aii <- NULL > > ## an inter-additive partition constraint > ## criteria 1,2 and criteria 3,4 are indepedent > # Aiap <- c(1,1,2,2) > Aiap <- NULL > > print("*** Starting the calculations") [1] "*** Starting the calculations" > ## search for a capacity which satisfies the constraints > lsc <- ls.sorting.capa.ident(n ,k, P, cl.proto, d, + A.Shapley.preorder = Asp, + A.Shapley.interval = Asi, + A.interaction.preorder = Aip, + A.interaction.interval = Aii, + A.inter.additive.partition = Aiap) Error in ls.sorting.capa.ident(n, k, P, cl.proto, d, A.Shapley.preorder = Asp, : not enough classes Execution halted * checking PDF version of manual ... [10s/13s] OK * checking HTML version of manual ... [5s/8s] OK * checking for non-standard things in the check directory ... OK * DONE Status: 1 ERROR