inst/unitTests/runTests.R

# ===========================================================
#     _/_/_/   _/_/_/  _/_/_/_/    _/_/_/_/  _/_/_/   _/_/_/
#      _/    _/       _/             _/    _/    _/   _/   _/
#     _/    _/       _/_/_/_/       _/    _/    _/   _/_/_/
#    _/    _/       _/             _/    _/    _/   _/
# _/_/_/   _/_/_/  _/_/_/_/_/     _/     _/_/_/   _/_/
# ===========================================================
#
# runTests.r: the R interface of CoreArray library
#
# Copyright (C) 2012	Xiuwen Zheng


# load R packages
library(RUnit)
library(SNPRelate)

# define a test suite
myTestSuite <- defineTestSuite("SNPRelate examples",
	testFileRegexp = "^runit.+\\.[rR]$",
	system.file("unitTests", package = "SNPRelate"))

# run the test suite
testResult <- runTestSuite(myTestSuite)

# print detailed text protocol to standard out
printTextProtocol(testResult)

# quit
q("no")

Try the SNPRelate package in your browser

Any scripts or data that you put into this service are public.

SNPRelate documentation built on May 2, 2019, 4:56 p.m.