* using log directory 'd:/RCompile/CRANincoming/R-devel/OmicFlow.Rcheck' * using R Under development (unstable) (2025-08-20 r88661 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 'OmicFlow/DESCRIPTION' ... OK * this is package 'OmicFlow' version '1.3.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Alem Gusinac ' New submission Possibly misspelled words in DESCRIPTION: Omics (2:58) omics (21:93) * 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 'OmicFlow' 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 ... [21s] 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 ... ERROR Running examples in 'OmicFlow-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: diversity_plot > ### Title: Diversity plot > ### Aliases: diversity_plot > > ### ** Examples > > library("ggplot2") > > n_row <- 1000 > n_col <- 100 > density <- 0.2 > num_entries <- n_row * n_col > num_nonzero <- round(num_entries * density) > > set.seed(123) > positions <- sample(num_entries, num_nonzero, replace=FALSE) > row_idx <- ((positions - 1) %% n_row) + 1 > col_idx <- ((positions - 1) %/% n_row) + 1 > > values <- runif(num_nonzero, min = 0, max = 1) > sparse_mat <- Matrix::sparseMatrix( + i = row_idx, + j = col_idx, + x = values, + dims = c(n_row, n_col) + ) > > div <- OmicFlow::diversity( + x = sparse_mat, + metric = "shannon" + ) > > dt <- data.table::data.table( + "values" = div, + "treatment" = c(rep("healthy", n_col / 2), rep("tumor", n_col / 2)) + ) > > colors <- OmicFlow::colormap(dt, "treatment") Warning in RColorBrewer::brewer.pal(length(unique_groups), Brewer.palID) : minimal value for n is 3, returning requested palette with 3 different levels > > diversity_plot( + data = dt, + values = "values", + col_name = "treatment", + palette = colors, + method = "shannon", + paired = FALSE, + p.adjust.method = "fdr" + ) $plot Error in `gghalves::geom_half_point_panel()`: ! Problem while converting geom to grob. ℹ Error occurred in the 2nd layer. Caused by error in `fun()`: ! argument "layout" is missing, with no default Backtrace: ▆ 1. ├─base (local) ``(x) 2. ├─ggplot2 (local) `print.ggplot2::ggplot`(x) 3. │ ├─ggplot2::ggplot_gtable(data) 4. │ └─ggplot2 (local) `ggplot_gtable.ggplot2::ggplot_built`(data) 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$draw_geom(d, layout) 14. │ └─ggplot2 (local) draw_geom(..., self = self) 15. │ └─self$geom$draw_layer(...) 16. │ └─ggplot2 (local) draw_layer(..., self = self) 17. │ └─base::lapply(...) 18. │ └─ggplot2 (local) FUN(X[[i]], ...) 19. │ ├─rlang::inject(self$draw_panel(data, panel_params, coord, !!!params)) 20. │ └─self$draw_panel(...) 21. │ └─gghalves (local) draw_panel(...) 22. │ └─transformation$compute_layer(transformation_df, transformation_params) 23. │ └─ggplot2 (local) compute_layer(..., self = self) 24. │ └─ggplot2:::dapply(...) 25. │ └─base::lapply(...) 26. │ └─ggplot2 (local) FUN(X[[i]], ...) 27. │ └─ggplot2 (local) apply_fun(cur_data) 28. │ └─ggplot2 (local) fun(x, ...) 29. └─rlang (local) ``(``) 30. └─handlers[[1L]](cnd) 31. └─cli::cli_abort(...) 32. └─rlang::abort(...) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... OK Running 'testthat.R' * checking PDF version of manual ... [22s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 1 NOTE