* using log directory 'd:/Rcompile/CRANpkg/local/4.7/Rtropical.Rcheck' * using R Under development (unstable) (2026-06-11 r90134 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-06-12 08:52:47 UTC * checking for file 'Rtropical/DESCRIPTION' ... OK * this is package 'Rtropical' version '1.2.1' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'Rtropical' can be installed ... OK * 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 ... [4s] OK * checking whether the package can be loaded with stated dependencies ... [4s] OK * checking whether the package can be unloaded cleanly ... [4s] OK * checking whether the namespace can be loaded with stated dependencies ... [4s] OK * checking whether the namespace can be unloaded cleanly ... [4s] OK * checking loading without being on the library search path ... [4s] 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 ... [11s] 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 ... [1s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [11s] ERROR Running examples in 'Rtropical-Ex.R' failed The error most likely occurred in: > ### Name: predict.tropsvm > ### Title: Predict Method for Tropical Support Vector Machines > ### Aliases: predict.tropsvm > > ### ** Examples > > > # data generation > library(Rfast) Loading required package: Rcpp Loading required package: zigg Loading required package: RcppParallel Attaching package: 'RcppParallel' The following object is masked from 'package:Rcpp': LdFlags Rfast: 2.1.5.2 ___ __ __ __ __ __ __ __ __ __ _ _ __ __ __ __ __ __ __ __ __ __ __ | __ __ __ __ | | __ __ __ __ _/ / \ | __ __ __ __ / /__ __ _ _ __ __\ | | | | | | / _ \ | | / / | | | | | | / / \ \ | | / / | | | | | | / / \ \ | | / / | |__ __ __ __| | | |__ __ __ __ / / \ \ | |__ __ __ __ _ / /__/\ | __ __ __ __| | __ __ __ __| / /__ _ __\ \ |_ __ __ __ _ | / ___ / | \ | | / _ _ _ _ _ _ \ | | \/ / / | |\ \ | | / / \ \ | | / / | | \ \ | | / / \ \ | | / / | | \ \ | | / / \ \ | | / / | | \ \__ __ _ | | / / \ \ _ __ __ __ _| | / / |_| \__ __ __\ |_| /_/ \_\ /_ __ __ __ ___| \/ team > e <- 100 > n <- 10 > N <- 10 > s <- 5 > x <- rbind( + rmvnorm(n, mu = c(5, -5, rep(0, e - 2)), sigma = diag(s, e)), + rmvnorm(n, mu = c(-5, 5, rep(0, e - 2)), sigma = diag(s, e)) + ) > y <- as.factor(c(rep(1, n), rep(2, n))) > newx <- rbind( + rmvnorm(N, mu = c(5, -5, rep(0, e - 2)), sigma = diag(s, e)), + rmvnorm(N, mu = c(-5, 5, rep(0, e - 2)), sigma = diag(s, e)) + ) > newy <- as.factor(rep(c(1, 2), each = N)) > > # train the tropical svm > tropsvm_fit <- tropsvm(x, y, auto.assignment = TRUE, ind = 1) > > # test with new data > pred <- predict(tropsvm_fit, newx) > > # check with accuracy > table(pred, newy) newy pred 1 2 1 10 10 > > # compute testing accuracy > sum(pred == newy) / length(newy) Error in Ops.factor(pred, newy) : level sets of factors are different Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [136s] OK Running 'testthat.R' [136s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [147s] OK * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... [7s] OK * DONE Status: 1 ERROR