File: Fix_tests.patch

package info (click to toggle)
r-bioc-multiassayexperiment 1.32.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,028 kB
  • sloc: makefile: 2
file content (25 lines) | stat: -rw-r--r-- 883 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Author: Dylan Aïssi <daissi@debian.org>
Description: r-bioc-RaggedExperiment is not yet available in Debian.
Forwarded: TODO

--- a/tests/testthat/test-combine.R
+++ b/tests/testthat/test-combine.R
@@ -29,6 +29,7 @@
         rowRanges=rowRanges, colData=colData)
     rse <- rse[, 1:4]
 
+    skip_if_not_installed("RaggedExperiment")
     library(RaggedExperiment)
     sample1 <- GRanges(c(a = "chr1:1-10:-", b = "chr1:11-18:+"), score = 1:2)
     sample2 <- GRanges(c(c = "chr2:1-10:-", d = "chr2:11-18:+"), score = 3:4)
--- a/tests/testthat/test-constructors.R
+++ b/tests/testthat/test-constructors.R
@@ -15,6 +15,8 @@
 
 grl <- GRangesList("gr1" = gr1, "gr2" = gr2, "gr3" = gr3)
 names(grl) <- c("snparray1", "snparray2", "snparray3")
+
+skip_if_not_installed("RaggedExperiment")
 RagExp <- RaggedExperiment::RaggedExperiment(grl)
 
 arraydat <- matrix(seq(101, 108), ncol=4,