* using log directory 'd:/RCompile/CRANincoming/R-devel/SUMO.Rcheck' * using R version 4.5.0 RC (2025-04-04 r88118 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 'SUMO/DESCRIPTION' ... OK * this is package 'SUMO' version '0.2.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Bernard Isekah Osang'ir ' Possibly misspelled words in DESCRIPTION: Benchmarking (2:56) MOFA (12:322) The Description field should not start with the package name, 'This package' or similar. Found the following \keyword or \concept entries which likely give several index terms: File 'SUMO.Rd': \keyword{benchmarking,} \keyword{integration,} \keyword{models,} \keyword{multi-omics,} * checking package namespace information ... OK * checking package dependencies ... INFO Package suggested but not available for checking: 'MOFAdata' * 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 serialization versions ... OK * checking whether package 'SUMO' can be installed ... OK * checking installed package size ... OK * 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... [13s] OK * checking Rd files ... 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 examples ... [14s] ERROR Running examples in 'SUMO-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: plot_weights > ### Title: Visualizing the raw loading/weights of the features > ### Aliases: plot_weights > > ### ** Examples > > output_obj <- OmixCraftHD( + vector_features = c(4000, 3000), + n_samples = 100, + n_factors = 2, + signal.samples = NULL, + signal.features.one = NULL, + signal.features.two = NULL, + snr = 2.5, + num.factor = 'multiple', + advanced_dist = 'mixed' + ) > > plot_weights( + sim_object = output_obj, + factor_num = 1, + data = 'omic.one', + type = 'scatter', + show.legend = FALSE + ) > > plot_weights( + sim_object = output_obj, + factor_num = "all", + data = 'omic.two', + type = 'histogram' + ) Error in `gtable_add_grob()`: ! `grobs` must be a single grob or a list of grobs, not a list. Backtrace: ▆ 1. └─SUMO::plot_weights(...) 2. ├─base::do.call(gridExtra::grid.arrange, c(plot_list, ncol = length(plot_list))) 3. └─gridExtra (local) ``(NULL, ``, ncol = 2L) 4. └─gridExtra::arrangeGrob(...) 5. └─gtable::gtable_add_grob(grobs = grobs) 6. └─gtable:::stop_input_type(grobs, "a single grob or a list of grobs") 7. └─rlang::abort(message, ..., call = call, arg = arg) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... ERROR Running 'testthat.R' Running the tests in 'tests/testthat.R' failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(SUMO) > > test_check("SUMO") [ FAIL 1 | WARN 0 | SKIP 0 | PASS 16 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plot_weights.R:16:3'): plot_weights runs without error ───────── Error in `gtable_add_grob(gt, grobs, t = positions$t, b = positions$b, l = positions$l, r = positions$r, z = seq_along(grobs), clip = clip)`: `grobs` must be a single grob or a list of grobs, not a list. Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-plot_weights.R:16:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─SUMO::plot_weights(...) 10. ├─base::do.call(gridExtra::grid.arrange, c(plot_list, ncol = length(plot_list))) 11. └─gridExtra (local) ``(NULL, ``, ncol = 2L) 12. └─gridExtra::arrangeGrob(...) 13. └─gtable::gtable_add_grob(grobs = grobs) 14. └─gtable:::stop_input_type(grobs, "a single grob or a list of grobs") 15. └─rlang::abort(message, ..., call = call, arg = arg) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 16 ] Error: Test failures Execution halted * checking PDF version of manual ... [13s] OK * checking HTML version of manual ... OK * DONE Status: 2 ERRORs, 1 NOTE