- using R Under development (unstable) (2026-08-13 r90397)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-16 (Debian 16.1.0-3) 16.1.0
GNU Fortran (Debian 16.1.0-3) 16.1.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-08-14 12:53:00 UTC
- checking for file ‘Rtropical/DESCRIPTION’ ... OK
- this is package ‘Rtropical’ version ‘1.2.1’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/1s] NOTE
Maintainer: ‘Houjie Wang <wanghoujie6688@gmail.com>’
The Description field contains
Wang, H. & Yoshida, R. (2020) <arXiv:2003.00677>. Details about
Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.
- 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 whether package ‘Rtropical’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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/6s] OK
- checking whether the package can be loaded with stated dependencies ... [3s/4s] OK
- checking whether the package can be unloaded cleanly ... [3s/4s] OK
- checking whether the namespace can be loaded with stated dependencies ... [4s/4s] OK
- checking whether the namespace can be unloaded cleanly ... [4s/7s] OK
- checking loading without being on the library search path ... [4s/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 ... [17s/20s] OK
- checking Rd files ... [0s/0s] 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [1s/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 ... [7s/8s] ERROR
Running examples in ‘Rtropical-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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 ... [10s/205s] OK
Running ‘testthat.R’ [9s/204s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [28s/252s] OK
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [1s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR, 1 NOTE