* using log directory 'd:/Rcompile/CRANpkg/local/4.5/o2plsda.Rcheck' * using R version 4.5.1 (2025-06-13 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'o2plsda/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'o2plsda' version '0.0.25' * 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 'o2plsda' can be installed ... OK * used C++ compiler: 'g++.exe (GCC) 14.2.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 ... [2s] 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 ... [7s] 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 line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... 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 'o2plsda-Ex.R' failed The error most likely occurred in: > ### Name: plot.o2plsda > ### Title: Score, VIP or loading plot for the O2PLS results > ### Aliases: plot.o2plsda > > ### ** Examples > > X <- matrix(rnorm(50),10,5) > Y <- matrix(rnorm(50),10,5) > fit <- o2pls(X,Y,2,1,1) > yy <- rep(c(0,1),5) > fit0 <- oplsda(fit,yy,2) > plot(fit0, type="score", group = factor(yy)) Error in `stat_ellipse()`: ! Problem while computing stat. ℹ Error occurred in the 3rd layer. Caused by error in `setup_params()`: ! The package "MASS" is required for calculating ellipses with `type = "t"`. Backtrace: ▆ 1. ├─base (local) ``(x) 2. ├─ggplot2 (local) `print.ggplot2::ggplot`(x) 3. │ ├─ggplot2::ggplot_build(x) 4. │ └─ggplot2 (local) `ggplot_build.ggplot2::ggplot`(x) 5. │ └─ggplot2:::by_layer(...) 6. │ ├─rlang::try_fetch(...) 7. │ │ ├─base::tryCatch(...) 8. │ │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 9. │ │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 10. │ │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 11. │ │ └─base::withCallingHandlers(...) 12. │ └─ggplot2 (local) f(l = layers[[i]], d = data[[i]]) 13. │ └─l$compute_statistic(d, layout) 14. │ └─ggplot2 (local) compute_statistic(..., self = self) 15. │ └─self$stat$setup_params(data, self$stat_params) 16. │ └─ggplot2 (local) setup_params(...) 17. │ └─rlang::check_installed("MASS", "for calculating ellipses with `type = \"t\"`.") 18. │ └─base::stop(cnd) 19. └─rlang (local) ``(``) 20. └─handlers[[1L]](cnd) 21. └─cli::cli_abort(...) 22. └─rlang::abort(...) Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [9s] ERROR Error(s) in re-building vignettes: --- re-building 'o2plsda.Rmd' using knitr Quitting from o2plsda.Rmd:91-96 [unnamed-chunk-5] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NULL ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'o2plsda.Rmd' failed with diagnostics: Problem while computing stat. ℹ Error occurred in the 3rd layer. Caused by error in `setup_params()`: ! The package "MASS" is required for calculating ellipses with `type = "t"`. --- failed re-building 'o2plsda.Rmd' SUMMARY: processing the following file failed: 'o2plsda.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [22s] OK * checking HTML version of manual ... [6s] OK * DONE Status: 2 ERRORs