Last updated on 2024-03-27 22:57:43 CET.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 1.0.17 | 1.98 | 123.16 | 125.14 | NOTE | |
r-devel-linux-x86_64-debian-gcc | 1.0.17 | 2.11 | 101.07 | 103.18 | NOTE | |
r-devel-linux-x86_64-fedora-clang | 1.0.17 | 154.82 | OK | |||
r-devel-linux-x86_64-fedora-gcc | 1.0.17 | 167.92 | OK | |||
r-devel-windows-x86_64 | 1.0.17 | 3.00 | 110.00 | 113.00 | ERROR | |
r-patched-linux-x86_64 | 1.0.17 | 2.22 | 120.18 | 122.40 | NOTE | |
r-release-linux-x86_64 | 1.0.17 | 2.51 | 121.81 | 124.32 | NOTE | |
r-release-macos-arm64 | 1.0.17 | 96.00 | OK | |||
r-release-macos-x86_64 | 1.0.17 | 143.00 | OK | |||
r-release-windows-x86_64 | 1.0.17 | 4.00 | 129.00 | 133.00 | OK | |
r-oldrel-macos-arm64 | 1.0.17 | 82.00 | OK | |||
r-oldrel-windows-x86_64 | 1.0.17 | 4.00 | 138.00 | 142.00 | OK |
Version: 1.0.17
Check: R code for possible problems
Result: NOTE
Found the following calls to attach():
File ‘doParallel/R/doParallel.R’:
attach(exportEnv)
See section ‘Good practice’ in ‘?attach’.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64
Version: 1.0.17
Check: tests
Result: ERROR
Running 'doRUnit.R' [8s]
Running the tests in 'tests/doRUnit.R' failed.
Complete output:
> ## unit tests will not be done if RUnit is not available
> if(require("RUnit", quietly=TRUE)) {
+
+ ## --- Setup ---
+
+ pkg <- "doParallel" # <-- Change to package name!
+
+ if(Sys.getenv("RCMDCHECK") == "FALSE") {
+ ## Path to unit tests for standalone running under Makefile (not R CMD check)
+ ## PKG/tests/../inst/unitTests
+ path <- file.path(getwd(), "..", "inst", "unitTests")
+ } else {
+ ## Path to unit tests for R CMD check
+ ## PKG.Rcheck/tests/../PKG/unitTests
+ 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)
+ ################################################################
+ ## BEGIN PACKAGE SPECIFIC CONFIGURATION #
+ ################################################################
+ registerDoParallel(2)
+ ################################################################
+ ## END PACKAGE SPECIFIC CONFIGURATION #
+ ################################################################
+
+ ## If desired, load the name space to allow testing of private functions
+ ## if (is.element(pkg, loadedNamespaces()))
+ ## attach(loadNamespace(pkg), name=paste("namespace", pkg, sep=":"), pos=3)
+ ##
+ ## or simply call PKG:::myPrivateFunction() in tests
+
+
+
+ ## --- Testing ---
+
+ ## Define tests
+ testSuite <- defineTestSuite(name=paste(pkg, "unit testing"),
+ dirs=path, testFileRegexp = "^options\\.R$")
+ ## Run
+ tests <- runTestSuite(testSuite)
+
+ ## Default report name
+ pathReport <- file.path(tempdir(), "report")
+
+ ## Report to stdout and text files
+ cat("------------------- UNIT TEST SUMMARY ---------------------\n\n")
+ printTextProtocol(tests, showDetails=FALSE)
+ printTextProtocol(tests, showDetails=FALSE,
+ fileName=paste(pathReport, "Summary.txt", sep=""))
+ printTextProtocol(tests, showDetails=TRUE,
+ fileName=paste(pathReport, ".txt", sep=""))
+
+ ## Report to HTML file
+ printHTMLProtocol(tests, fileName=paste(pathReport, ".html", sep=""))
+ # printHTMLProtocol(tests, fileName=file.path(dirname(dirname(getwd())),pkg,"gsDesign-RUnit-Test-Summary.html")) #paste(pathReport, ".html", sep=""))
+
+ ## 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 {
+ warning("cannot run unit tests -- package RUnit is not available")
+ }
Running unit tests
$pkg
[1] "doParallel"
$getwd
[1] "d:/Rcompile/CRANpkg/local/4.4/doParallel.Rcheck/tests"
$pathToUnitTests
[1] "D:/temp/RtmpSEpU3y/RLIBS_836c51446ad1/doParallel/unitTests"
Loading required package: foreach
Loading required package: iterators
Loading required package: parallel
Executing test function test.attach ... done successfully.
Executing test function test.pkgname.test.stress ...
Flavor: r-devel-windows-x86_64