/usr/lib/R/site-library/BiocInstaller/unitTests/test_biocinstallRepos.R is in r-bioc-biocinstaller 1.24.0-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 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | repos <- biocinstallRepos()
test_biocinstallRepos_named_repositories <- function()
{
allOS <- c("BioCsoft", "CRAN", "BioCann", "BioCexp", "BioCextra")
windowsOnly <- "CRANextra"
checkTrue(all(allOS %in% names(repos)))
if (.Platform$OS.type == "windows")
{
checkTrue(windowsOnly %in% names(repos))
} else {
checkTrue(!windowsOnly %in% names(repos))
}
}
test_biocinstallRepos_noNA_repositories <- function()
{
checkTrue(!any(is.na(repos)))
}
test_biocinstallRepos_order <- function()
{
checkIdentical("BioCsoft", names(repos)[[1]])
}
|