/usr/lib/R/site-library/IRanges/unitTests/test_split.R is in r-bioc-iranges 2.12.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 | test_splitAsList <- function() {
ir <- IRanges(sample(100),sample(100)+100)
ir2 <- unlist(split(ir, ceiling(1:100 / 10)))
checkTrue(all(ir==ir2))
}
|