This page was generated on 2019-04-16 11:52:38 -0400 (Tue, 16 Apr 2019).
rqt 1.8.0 Ilya Y. Zhbannikov
Snapshot Date: 2019-04-15 17:01:12 -0400 (Mon, 15 Apr 2019) |
URL: https://git.bioconductor.org/packages/rqt |
Branch: RELEASE_3_8 |
Last Commit: c66b6e5 |
Last Changed Date: 2018-10-30 11:42:04 -0400 (Tue, 30 Oct 2018) |
| malbec1 | Linux (Ubuntu 16.04.6 LTS) / x86_64 | OK | OK | [ OK ] | | |
merida1 | OS X 10.11.6 El Capitan / x86_64 | OK | OK | OK | OK | |
R version 3.5.3 (2019-03-11) -- "Great Truth"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> # Adapted from: http://rwiki.sciviews.org/doku.php?id=developers:runit
>
> if( identical( .Platform$OS.type, "windows" ) &&
+ identical( .Platform$r_arch, "x64" ) ){
+ print( "unit tests not run on windows 64 (workaround alert)" )
+ } else {
+ if(require("RUnit", quietly = TRUE)) {
+ pkg <- "rqt"
+ if(Sys.getenv("RCMDCHECK") == "FALSE") {
+ path <- file.path(getwd(), "..", "inst", "unitTests")
+ } else {
+ path <- system.file(package=pkg, "unitTests")
+ }
+
+ cat("\nRunning unit tests:\n")
+ print(list(pkg=pkg, getwd=getwd(), pathToUnitTests=path))
+
+ library(package=pkg, character.only=TRUE)
+
+ # Define tests
+ testSuite <- defineTestSuite(name=paste(pkg, "unit testing"),
+ dirs=path,
+ testFuncRegexp = "^test_+",
+ testFileRegexp = "^test_+")
+
+ # Run
+ tests <- runTestSuite(testSuite)
+
+ # Default report name
+ pathReport <- file.path(path, "report")
+
+ # Report to stdout
+ printTextProtocol(tests, showDetails=FALSE)
+
+ # Return stop() to cause R CMD check stop in case of
+ # - failures i.e. FALSE to unit tests or
+ # - errors i.e. R errors
+ tmp <- getErrors(tests)
+ if(tmp$nFail > 0 | tmp$nErr > 0) {
+ stop(paste("\n\nUnit testing failed (#test failures: ", tmp$nFail, ",
+ #R errors: ", tmp$nErr, ")\n\n", sep=""))
+ }
+
+ } else {
+ print( "package RUnit not available, cannot run unit tests" )
+ }
+ }
Running unit tests:
$pkg
[1] "rqt"
$getwd
[1] "/home/biocbuild/bbs-3.8-bioc/meat/rqt.Rcheck/tests"
$pathToUnitTests
[1] "/home/biocbuild/bbs-3.8-bioc/R/library/rqt/unitTests"
Loading required package: SummarizedExperiment
Loading required package: GenomicRanges
Loading required package: stats4
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, basename, cbind, colMeans, colSums, colnames,
dirname, do.call, duplicated, eval, evalq, get, grep, grepl,
intersect, is.unsorted, lapply, lengths, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, rank, rbind,
rowMeans, rowSums, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, which, which.max, which.min
Loading required package: S4Vectors
Attaching package: 'S4Vectors'
The following object is masked from 'package:base':
expand.grid
Loading required package: IRanges
Loading required package: GenomeInfoDb
Loading required package: Biobase
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
Loading required package: DelayedArray
Loading required package: matrixStats
Attaching package: 'matrixStats'
The following objects are masked from 'package:Biobase':
anyMissing, rowMedians
Loading required package: BiocParallel
Attaching package: 'DelayedArray'
The following objects are masked from 'package:matrixStats':
colMaxs, colMins, colRanges, rowMaxs, rowMins, rowRanges
The following objects are masked from 'package:base':
aperm, apply
Executing test function test_geneTest ... done successfully.
Executing test function test_geneTestMeta ... done successfully.
RUNIT TEST PROTOCOL -- Tue Apr 16 02:47:18 2019
***********************************************
Number of test functions: 2
Number of errors: 0
Number of failures: 0
1 Test Suite :
rqt unit testing - 2 test functions, 0 errors, 0 failures
>
> proc.time()
user system elapsed
6.416 0.236 6.668