/usr/lib/R/site-library/Biobase/unitTests/test_DataClasses.R is in r-bioc-biobase 2.30.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 | testNew <- function() {
## create instances of non-virtual objects with simple call to "new"
nms <- ls(getNamespace("Biobase"),all=TRUE)
classes <- gsub(".__C__", "", nms[grep(".__C__", nms)])
isVirtual <- sapply(classes, function(nm) getClass(nm)@virtual)
res <- lapply(classes[!isVirtual],
function(x) suppressWarnings(new(x)))
}
test_MIAME_construction <- function() {
checkTrue(validObject(new("MIAME")))
checkTrue(validObject(MIAME()))
checkIdentical(new("MIAME", name="mytest"), MIAME(name="mytest"))
}
|