This file is indexed.

/usr/lib/R/site-library/GenABEL/unitTests/runit.mmscore.R is in r-cran-genabel 1.7-6-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
28
29
30
31
32
### --- Test setup ---
#
# regression tests
#

if(FALSE) {
	## Not really needed, but can be handy when writing tests
	library(RUnit)
	library(GenABEL)
}

### do not run
#stop("SKIP THIS TEST")
###

### ---- common functions and data -----

#source(paste("../inst/unitTests/shared_functions.R"))
#source(paste(path,"/shared_functions.R",sep=""))

### --- Test functions ---

test.exports <- function()
{
	data(ge03d2.clean)
	dta <- ge03d2.clean[1:200,autosomal(ge03d2.clean)[1:3000]]
	gkin <- ibs(dta[,1:2000],w="freq")
	h2 <- polygenic(height,data=dta,kin=gkin)
	xOld <- mmscore(h2,dta,cppFun="old")
	xNew <- mmscore(h2,dta,cppFun="new")
	checkEquals(results(xNew),results(xOld))
}