This page was generated on 2020-01-16 13:47:25 -0500 (Thu, 16 Jan 2020).
rqt 1.13.0 Ilya Y. Zhbannikov
Snapshot Date: 2020-01-15 16:46:30 -0500 (Wed, 15 Jan 2020) |
URL: https://git.bioconductor.org/packages/rqt |
Branch: master |
Last Commit: eecb8a0 |
Last Changed Date: 2019-10-29 13:42:16 -0500 (Tue, 29 Oct 2019) |
| malbec2 | Linux (Ubuntu 18.04.3 LTS) / x86_64 | OK | OK | OK | | |
tokay2 | Windows Server 2012 R2 Standard / x64 | OK | OK | OK | OK | |
celaya2 | OS X 10.11.6 El Capitan / x86_64 | OK | OK | [ OK ] | OK | |
R Under development (unstable) (2019-12-14 r77572) -- "Unsuffered Consequences"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (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] "/Users/biocbuild/bbs-3.11-bioc/meat/rqt.Rcheck/tests"
$pathToUnitTests
[1] "/Library/Frameworks/R.framework/Versions/4.0/Resources/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, colnames, dirname, do.call,
duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
lapply, mapply, match, mget, order, paste, pmax, pmax.int, pmin,
pmin.int, rank, rbind, 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, rowsum
Executing test function test_geneTest ... done successfully.
Executing test function test_geneTestMeta ... done successfully.
RUNIT TEST PROTOCOL -- Thu Jan 16 08:28:27 2020
***********************************************
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
11.800 1.134 12.888