/usr/lib/R/site-library/BiocParallel/unitTests/test_utilities.R is in r-bioc-biocparallel 0.6.1-1.
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 6 7 8 9 10 11 12 13 | test_splitIndicies <- function()
{
.splitIndices <- BiocParallel:::.splitIndices
checkIdentical(integer(), .splitIndices(0, 0))
checkIdentical(integer(), .splitIndices(0, 1))
checkIdentical(integer(), .splitIndices(0, 2))
checkIdentical(1:4, .splitIndices(4, 0))
checkIdentical(1:4, .splitIndices(4, 1))
checkIdentical(list(1:4, 5:7), .splitIndices(7, 2))
}
|