/usr/lib/R/site-library/BiocInstaller/unitTests/test_BiocUpgrade.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 | test_useDevel <- function()
{
if (!BiocInstaller:::IS_DOWNGRADEABLE)
checkException(useDevel(FALSE), silent=TRUE)
if (!BiocInstaller:::IS_UPGRADEABLE) {
checkException(useDevel(), silent=TRUE)
opts <- options(warn=2); on.exit(options(opts))
checkException(biocLite("BiocUpgrade"))
}
}
test_getContribUrl_exist <- function()
{
fun <- BiocInstaller:::.getContribUrl
vers <- BiocInstaller:::BIOC_VERSION
checkTrue(grepl(vers, fun(vers)))
if (BiocInstaller:::IS_UPGRADEABLE) {
vers <- BiocInstaller:::UPGRADE_VERSION
checkTrue(grepl(vers, fun(vers)))
}
if (BiocInstaller:::IS_DOWNGRADEABLE) {
vers <- BiocInstaller:::DOWNGRADE_VERSION
checkTrue(grepl(vers, fun(vers)))
}
}
|