- using R Under development (unstable) (2026-11-20 r90940)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3)
GNU Fortran (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3)
- running under: Fedora Linux 44 (Server Edition)
- using session charset: UTF-8
* current time: 2026-11-20 05:16:13 UTC
- using option ‘--no-stop-on-test-error’
- checking for file ‘treediff/DESCRIPTION’ ... OK
- this is package ‘treediff’ version ‘0.2.3’
- 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 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 ‘treediff’ can be installed ... [35s/69s] OK
See the install log for details.
- checking package 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 ... [11s/26s] OK
- checking whether the package can be loaded with stated dependencies ... [11s/21s] OK
- checking whether the package can be unloaded cleanly ... [11s/20s] OK
- checking whether the namespace can be loaded with stated dependencies ... [10s/13s] OK
- checking whether the namespace can be unloaded cleanly ... [11s/18s] OK
- checking loading without being on the library search path ... [11s/15s] 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 ... [44s/46s] 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 ... [11s/11s] ERROR
Running examples in ‘treediff-Ex.R’ failed
The error most likely occurred in:
> ### Name: HiC2Tree
> ### Title: Convert Hi-C to trees
> ### Aliases: HiC2Tree
>
> ### ** Examples
>
> replicates <- 1:3
> cond <- c("90", "110")
> all_begins <- interaction(expand.grid(replicates, cond), sep = "-")
> all_begins <- as.character(all_begins)
>
> # single chromosome
> nb_chr <- 1
> chromosomes <- 1:nb_chr
> all_mat_chr <- lapply(chromosomes, function(chr) {
+ all_mat <- lapply(all_begins, function(ab) {
+ mat_file <- paste0("Rep", ab, "-chr", chr, "_200000.bed")
+ })
+ all_mat <- unlist(all_mat)
+ })
> index <- system.file("extdata", "index.200000.longest18chr.abs.bed",
+ package = "treediff")
> format <- rep("HiC-Pro", length(replicates) * length(cond) * nb_chr)
> binsize <- 200000
> files <- system.file("extdata", unlist(all_mat_chr), package = "treediff")
> replicates <- c(3, 3)
> HiC2Tree(files, format, binsize, index, chromosomes, replicates)
Parsing '/data/localhost/ripley/R/packages/tests-devel/treediff.Rcheck/treediff/extdata/Rep1-90-chr1_200000.bed' and '/data/localhost/ripley/R/packages/tests-devel/treediff.Rcheck/treediff/extdata/index.200000.longest18chr.abs.bed'.
Parsing '/data/localhost/ripley/R/packages/tests-devel/treediff.Rcheck/treediff/extdata/Rep2-90-chr1_200000.bed' and '/data/localhost/ripley/R/packages/tests-devel/treediff.Rcheck/treediff/extdata/index.200000.longest18chr.abs.bed'.
Parsing '/data/localhost/ripley/R/packages/tests-devel/treediff.Rcheck/treediff/extdata/Rep3-90-chr1_200000.bed' and '/data/localhost/ripley/R/packages/tests-devel/treediff.Rcheck/treediff/extdata/index.200000.longest18chr.abs.bed'.
Parsing '/data/localhost/ripley/R/packages/tests-devel/treediff.Rcheck/treediff/extdata/Rep1-110-chr1_200000.bed' and '/data/localhost/ripley/R/packages/tests-devel/treediff.Rcheck/treediff/extdata/index.200000.longest18chr.abs.bed'.
Parsing '/data/localhost/ripley/R/packages/tests-devel/treediff.Rcheck/treediff/extdata/Rep2-110-chr1_200000.bed' and '/data/localhost/ripley/R/packages/tests-devel/treediff.Rcheck/treediff/extdata/index.200000.longest18chr.abs.bed'.
Parsing '/data/localhost/ripley/R/packages/tests-devel/treediff.Rcheck/treediff/extdata/Rep3-110-chr1_200000.bed' and '/data/localhost/ripley/R/packages/tests-devel/treediff.Rcheck/treediff/extdata/index.200000.longest18chr.abs.bed'.
Error in as.vector(x) : no method for coercing this S4 class to a vector
Calls: HiC2Tree ... as.data.frame.Vector -> .as.data.frame.Vector -> as.vector
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [14s/14s] ERROR
Running ‘testthat.R’ [14s/14s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library("testthat")
> library("treediff")
>
> test_check("treediff")
Saving _problems/test-HiC2Tree-26.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 29 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-HiC2Tree.R:26:1'): (code run outside of `test_that()`) ─────────
Error in `as.vector(x)`: no method for coercing this S4 class to a vector
Backtrace:
▆
1. └─treediff::HiC2Tree(...) at test-HiC2Tree.R:26:1
2. ├─treediff::normalizeCount(res)
3. └─treediff:::normalizeCount.HiCDataSetList(res)
4. └─base::lapply(...)
5. └─treediff (local) FUN(X[[i]], ...)
6. └─base::lapply(...)
7. └─treediff (local) FUN(X[[i]], ...)
8. ├─base::as.data.frame(interaction)
9. └─S4Vectors::as.data.frame.Vector(interaction)
10. └─S4Vectors:::.as.data.frame.Vector(x, row.names = row.names, ...)
11. └─base::as.vector(x)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 29 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 2 ERRORs