search for: printtextprotocol

Displaying 3 results from an estimated 3 matches for "printtextprotocol".

2006 Aug 05
1
R CMD check and RUnit
...h, testDir) pathReport <- file.path(path, "report") ## --- Testing --- ## Define tests testsuite.PKG <- defineTestSuite(name="PKG unit testing", dirs=path) ## Run tests <- runTestSuite(testsuite.PKG) ## Print results printTextProtocol(tests) printTextProtocol(tests, fileName=paste(pathReport, ".txt", sep="")) ## Print HTML version to a file printHTMLProtocol(tests, fileName=paste(pathReport, ".html", sep="")) } ----------------------------------------------------------------------...
2007 Aug 29
1
R CMD check recursive copy of tests/
>From NEWS of R v2.6.0 devel: o R CMD check now does a recursive copy on the 'tests' directory. However, R CMD check does not run *.R scripts in such subdirectories (as I thought/hoped for), only those directly under tests/, This may or may not be intentional. If true, maybe the above should be clarified as: o R CMD check now does a recursive copy on the 'tests' directory
2006 Feb 04
1
RUnit - need advice on a good directory structure or tips...
...############################# library("RUnit") suite_foo <- defineTestSuite("foo", dirs = ".", testFileRegexp = "^test.+\\.r", testFuncRegexp = "^test.+" ) result_foo <- runTestSuite(suite_foo) printTextProtocol(result_foo) ## printHTMLProtocol(result_foo, fileName="result_foo.html") ## runTestFile("test_foo.r") ====================================================== ################################################## ## ../codes/foo.r ## ## A code file sample ## ##############...