CRAN Package Check Results for Package gdata

Last updated on 2020-09-18 15:52:47 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.18.0 6.63 88.68 95.31 ERROR
r-devel-linux-x86_64-debian-gcc 2.18.0 4.61 64.68 69.29 ERROR
r-devel-linux-x86_64-fedora-clang 2.18.0 127.28 ERROR
r-devel-linux-x86_64-fedora-gcc 2.18.0 117.71 ERROR
r-devel-windows-ix86+x86_64 2.18.0 11.00 130.00 141.00 ERROR
r-patched-linux-x86_64 2.18.0 6.89 88.11 95.00 OK
r-patched-solaris-x86 2.18.0 94.50 OK
r-release-linux-x86_64 2.18.0 5.33 87.72 93.05 OK
r-release-macos-x86_64 2.18.0 OK
r-release-windows-ix86+x86_64 2.18.0 13.00 117.00 130.00 OK
r-oldrel-macos-x86_64 2.18.0 OK
r-oldrel-windows-ix86+x86_64 2.18.0 16.00 120.00 136.00 OK

Check Details

Version: 2.18.0
Check: tests
Result: ERROR
     Running 'runRUnitTests.R' [1s/2s]
     Running 'test.humanReadable.R' [1s/1s]
     Comparing 'test.humanReadable.Rout' to 'test.humanReadable.Rout.save' ... OK
     Running 'test.read.xls.R' [23s/28s]
     Comparing 'test.read.xls.Rout' to 'test.read.xls.Rout.save' ... OK
     Running 'test.reorder.factor.R' [1s/1s]
     Comparing 'test.reorder.factor.Rout' to 'test.reorder.factor.Rout.save' ... OK
     Running 'test.write.fwf.eol.R' [1s/1s]
     Running 'tests.write.fwf.R' [1s/1s]
     Comparing 'tests.write.fwf.Rout' to 'tests.write.fwf.Rout.save' ... OK
    Running the tests in 'tests/runRUnitTests.R' failed.
    Complete output:
     > ### runRUnitTests.R
     > ###------------------------------------------------------------------------
     > ### What: Run RUnit tests (the core)- R code
     > ### $Id$
     > ### Time-stamp: <2008-12-30 12:52:51 ggorjan>
     > ###------------------------------------------------------------------------
     >
     > ## The setup seems to be quite messy, but it is so to enable use of this in
     > ## several ways as shown bellow.
     >
     > ## "R CMD check" way should be the most authoritative way to run the RUnit
     > ## tests for a developer. RUnit tests are issued during R CMD check of the
     > ## package due to example section of .runRUnitTests() function. If any test
     > ## fails (failure) or if there are any R errors during RUnit testing, R CMD
     > ## check fails. These are variable values specific for this way:
     > ## - .path DEVEL/PATH/PKG.Rcheck/PKG/unitTests
     > ## - .way function
     >
     > ## ".runRUnitTests()" way from within R after library(PKG) is handy for
     > ## package useRs, since it enables useRs to be sure that all tests pass for
     > ## their installation. This is just a convenient wrapper function to run
     > ## the RUnit testing suite. These are variable values specific for this
     > ## way:
     > ## - .path INSTALL/PATH/PKG/unitTests
     > ## - .way function
     >
     > ## "Shell" way is another possibility mainly for a developer in order to
     > ## skip possibly lengthy R CMD check and perform just RUnit testing with an
     > ## installed version of a pcakage. These are variable values specific for
     > ## this way:
     > ## - .path DEVEL/PATH/PKG/inst/unitTests
     > ## - .way shell
     > ##
     > ## Rscript runRUnitTests.R
     > ## R CMD BATCH runRUnitTests.R
     > ## make
     > ## make all
     >
     > PKG <- 'gdata'
     >
     > if(require("RUnit", quietly=TRUE))
     + {
     +
     + path <- normalizePath("unitTests")
     +
     + cat("\nRunning unit tests\n")
     + print(list(pkg=PKG, getwd=getwd(), pathToUnitTests=path))
     +
     + library(package=PKG, character.only=TRUE)
     +
     + testFileRegexp <- "^runit.+\\.[rR]$"
     +
     + ## Debugging echo
     + cat("\nRunning RUnit tests\n")
     + print(list(pkg=PKG,
     + getwd=getwd(),
     + pathToRUnitTests=path))
     +
     + ## Define tests
     + testSuite <- defineTestSuite(name=paste(PKG, "RUnit testing"),
     + dirs=path,
     + testFileRegexp=testFileRegexp
     + )
     +
     + ## Run
     + tests <- runTestSuite(testSuite)
     +
     + if(file.access(path, 02) != 0)
     + {
     + ## cannot write to path -> use writable one
     + tdir <- tempfile(paste(PKG, "RUnitTests", sep="_"))
     + dir.create(tdir)
     + pathReport <- file.path(tdir, "report")
     + }
     + else
     + {
     + pathReport <- file.path(path, "report")
     + }
     +
     + ## Print results:
     + printTextProtocol(tests)
     + printTextProtocol(tests,
     + fileName=paste(pathReport, ".txt", sep=""))
     +
     + ## Print HTML Version of results:
     + printHTMLProtocol(tests,
     + fileName=paste(pathReport, ".html", sep=""))
     +
     + cat("\nRUnit reports also written to\n",
     + pathReport, ".(txt|html)\n\n", sep="")
     +
     + ## Return stop() to cause R CMD check stop in case of
     + ## - failures i.e. FALSE to RUnit tests or
     + ## - errors i.e. R errors
     + tmp <- getErrors(tests)
     + if(tmp$nFail > 0 || tmp$nErr > 0)
     + {
     + stop(paste("\n\nRUnit testing failed:\n",
     + " - #test failures: ", tmp$nFail, "\n",
     + " - #R errors: ", tmp$nErr, "\n\n", sep="")
     + )
     + }
     + } else {
     +
     + cat("R package 'RUnit' cannot be loaded - no unit tests run\n",
     + "for package", PKG,"\n")
     +
     + }
    
     Running unit tests
     $pkg
     [1] "gdata"
    
     $getwd
     [1] "/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests"
    
     $pathToUnitTests
     [1] "/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests/unitTests"
    
     gdata: read.xls support for 'XLS' (Excel 97-2004) files ENABLED.
    
     gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.
    
     Attaching package: 'gdata'
    
     The following object is masked from 'package:stats':
    
     nobs
    
     The following object is masked from 'package:utils':
    
     object.size
    
     The following object is masked from 'package:base':
    
     startsWith
    
    
     Running RUnit tests
     $pkg
     [1] "gdata"
    
     $getwd
     [1] "/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests"
    
     $pathToRUnitTests
     [1] "/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests/unitTests"
    
    
    
     Executing test function test.bindData ... Error in bindData(x = 1:10, y = 1:10) : 'x' must be a data frame
     Error in bindData(x = matrix(1:10), y = matrix(1:10)) :
     'x' must be a data frame
     done successfully.
    
    
    
     Executing test function test.cbindX ... done successfully.
    
    
    
     Executing test function test.drop.levels ... done successfully.
    
    
    
     Executing test function test.getDay ... Error in getDay.default(x = num) :
     'getDay' can only be used on objects of a date/time class
     Error in getDay.default(x = cha) :
     'getDay' can only be used on objects of a date/time class
     Error in getDay.default(x = fac) :
     'getDay' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getHour ... Error in getHour.default(x = num) :
     'getHour' can only be used on objects of a date/time class
     Error in getHour.default(x = cha) :
     'getHour' can only be used on objects of a date/time class
     Error in getHour.default(x = fac) :
     'getHour' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getMin ... Error in getMin.default(x = num) :
     'getMin' can only be used on objects of a date/time class
     Error in getMin.default(x = cha) :
     'getMin' can only be used on objects of a date/time class
     Error in getMin.default(x = fac) :
     'getMin' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getMonth ... Error in getMonth.default(x = num) :
     'getMonth' can only be used on objects of a date/time class
     Error in getMonth.default(x = cha) :
     'getMonth' can only be used on objects of a date/time class
     Error in getMonth.default(x = fac) :
     'getMonth' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getSec ... Error in getSec.default(x = num) :
     'getSec' can only be used on objects of a date/time class
     Error in getSec.default(x = cha) :
     'getSec' can only be used on objects of a date/time class
     Error in getSec.default(x = fac) :
     'getSec' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getYear ... Error in getYear.default(x = num) :
     'getYear' can only be used on objects of a date/time class
     Error in getYear.default(x = cha) :
     'getYear' can only be used on objects of a date/time class
     Error in getYear.default(x = fac) :
     'getYear' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.cLevelsMap ... Error in c.listLevelsMap(x, sort = sort, recursive = TRUE) :
     can not combine integer "levelsMaps"
     done successfully.
    
    
    
     Executing test function test.checkLevelsMap ... Error in gdata:::.checkLevelsMap(x = "A", method = "raw") :
     '"A"' must be <08> a named list
     Error in gdata:::.checkLevelsMap(x = list("A"), method = "raw") :
     'list("A")' must be <08> a named list
     Error in gdata:::.checkLevelsMap(x = fMapInt, method = "class") :
     'fMapInt' must be a "levelsMap"
     Error in gdata:::.checkListLevelsMap(x = map, method = "class") :
     'map' must be a "listLevelsMap"
     Error in gdata:::.checkListLevelsMap(x = map1, method = "class") :
     'map1' must be also a list of "levelsMap"
     done successfully.
    
    
    
     Executing test function test.mapLevels ... Error in mapLevels.default(1:3) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     Error in mapLevels.default(1.5) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     Error in mapLevels.list(l, combine = TRUE) :
     can not combine integer "levelsMaps"
     Error in mapLevels.default(X[[i]], ...) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     Error in mapLevels.default(X[[i]], ...) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     done successfully.
    
    
    
     Executing test function test.mapLevels<- ... Error in `mapLevels<-.default`(1.1, value = 2) :
     'x' must be either: "integer", "character", "factor"
     Error in `mapLevels<-.default`(complex(1.1), value = 2) :
     'x' must be either: "integer", "character", "factor"
     Error in `mapLevels<-.default`(as.character(f), value = fMapInt) :
     can not apply integer "levelsMap" to "character"
     Error in is.levelsMap(x) : object 'chaMapCha' not found
     Error in `mapLevels<-.default`(as.character(f), value = fMapFuzz) :
     all components of 'value' must be of the same class
     Error in `mapLevels<-.default`(as.integer(f), value = fMapFuzz) :
     all components of 'value' must be of the same class
     done successfully.
    
    
    
     Executing test function test.uniqueLevelsMap ... done successfully.
    
    
    
     Executing test function test.nPairs ... Error in nPairs(x = x) : 'x' must be a data.frame or a matrix
     Error in nPairs(x = table(x)) : 'x' must be a data.frame or a matrix
     done successfully.
    
    
    
     Executing test function test.reorder.factor ... done successfully.
    
    
    
     Executing test function test.trim ... done successfully.
    
    
    
     Executing test function test.trimSum ... Error in trimSum(matrix(1:10)) : 'x' must be a vector - for now
     Error in trimSum(data.frame(1:10)) : 'x' must be a vector - for now
     Error in trimSum(list(1:10)) : 'x' must be a vector - for now
     Error in trimSum(letters) : 'x' must be numeric
     Error in trimSum(x = 1:10, n = 11) :
     'n' must be smaller than the length of x
     Error in trimSum(x = 1, n = 1) : 'n' must be smaller than the length of x
     done successfully.
    
    
    
     Executing test function test.NAToUnknown ... Error in NAToUnknown.default(xInt, unknown = unkC) :
     'unknown' must be a single value
     In addition: Warning message:
     new level is introduced: notAvail
     Error in NAToUnknown.default(xInt, unknown = unkL) :
     'unknown' must be a single value
     Error in NAToUnknown.default(xCha, unknown = chaUnk1) :
     'x' already has value "-"
     Error in NAToUnknown.factor(xFac, unknown = facLev) :
     'x' already has level "A"
     Timing stopped at: 0.008 0 0.008
     Error in checkIdentical(NAToUnknown(xPOSIXct, unknown = POSIXctUnk), xPOSIXctUnk) :
     FALSE
    
     In addition: Warning message:
     new level is introduced: NA
     done successfully.
    
    
    
     Executing test function test.isUnknown ... Error in .unknownList(x = x, unknown = unknown) :
     name(s) '' not in names of 'x'
     done successfully.
    
    
    
     Executing test function test.unknownToNA ... Timing stopped at: 0.002 0 0.002
     Error in checkIdentical(unknownToNA(xPOSIXctUnk, unknown = POSIXctUnk), :
     FALSE
    
     done successfully.
    
    
    
     Executing test function test.wideByFactor ... Error in wideByFactor(x = 1:10) : 'x' must be a data frame
     Error in wideByFactor(x = matrix(1:10)) : 'x' must be a data frame
     Error in wideByFactor(x = tmp, factor = c("f1", "f2")) :
     'factor' can be only of length one
     Error in wideByFactor(x = tmp, factor = "c1") :
     column defined in 'factor' must be a factor
     done successfully.
    
    
    
     Executing test function test.write.fwf ... Error in write.fwf(1:10) : 'x' must be a data.frame or matrix
     Error in write.fwf(list(1:10)) : 'x' must be a data.frame or matrix
     Error in write.fwf(data.frame(1:10, letters[1:10]), na = c("", " ")) :
     only single value can be defined for 'na'
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     a b c d
     123 3.141593 1e+08 1e+222
     int1
     1
     2
     3
     4
    
     4
     5
     6
     7
     8
     9
     int1
     1
     2
     3
     4
     1234
     4
     5
     6
     7
     8
     9
     row num1 num2
     1 1
     2 2 1.0
     3 3 1.5
     4 4 2.0
     5 5 2.5
     6 6 3.0
     7 7 3.5
     8 8 4.0
     9 9 4.5
     10 10 5.0
     11 5.5
     row num1 num2
     1 1
     2 2 1.0
     3 3 1.5
     4 4 2.0
     5 5 2.5
     6 6 3.0
     7 7 3.5
     8 8 4.0
     9 9 4.5
     10 10 5.0
     11 5.5
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     num1
     1
     2
     3
     4
     5
     6
     7
     8
     9
     10
    
     num1
     1
     2
     3
     4
     5
     6
     7
     8
     9
     10
    
     Error in write.fwf(testData[, c("num1", "num2")], width = 2) :
     'width' (2) was too small for columns: num2
     'width' should be at least (3)
     In addition: Warning message:
     In write.fwf(testData[, c("num1", "num2")], width = 2) : recycling 'width'
     Error in write.fwf(testData[, c("num1", "num2")], width = c(2, 1)) :
     'width' (1) was too small for columns: num2
     'width' should be at least (3)
    
     DONE.
    
     done successfully.
    
     RUNIT TEST PROTOCOL -- Fri Sep 18 00:14:09 2020
     ***********************************************
     Number of test functions: 23
     Number of errors: 0
     Number of failures: 2
    
    
     1 Test Suite :
     gdata RUnit testing - 23 test functions, 0 errors, 2 failures
     FAILURE in test.NAToUnknown: Error in checkIdentical(NAToUnknown(xPOSIXct, unknown = POSIXctUnk), xPOSIXctUnk) :
     FALSE
    
     FAILURE in test.unknownToNA: Error in checkIdentical(unknownToNA(xPOSIXctUnk, unknown = POSIXctUnk), :
     FALSE
    
    
    
    
     Details
     ***************************
     Test Suite: gdata RUnit testing
     Test function regexp: ^test.+
     Test file regexp: ^runit.+\.[rR]$
     Involved directory:
     /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests/unitTests
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.bindData.R
     test.bindData: (11 checks) ... OK (0.05 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.cbindX.R
     test.cbindX: (5 checks) ... OK (0.03 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.drop.levels.R
     test.drop.levels: (3 checks) ... OK (0.04 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.getDateTimeParts.R
     test.getDay: (6 checks) ... OK (0 seconds)
     test.getHour: (3 checks) ... OK (0 seconds)
     test.getMin: (3 checks) ... OK (0 seconds)
     test.getMonth: (6 checks) ... OK (0 seconds)
     test.getSec: (3 checks) ... OK (0 seconds)
     test.getYear: (6 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.mapLevels.R
     test.cLevelsMap: (8 checks) ... OK (0.01 seconds)
     test.checkLevelsMap: (5 checks) ... OK (0 seconds)
     test.mapLevels: (26 checks) ... OK (0.02 seconds)
     test.mapLevels<-: (19 checks) ... OK (0.02 seconds)
     test.uniqueLevelsMap: (1 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.nPairs.R
     test.nPairs: (8 checks) ... OK (0.01 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.reorder.factor.R
     test.reorder.factor: (5 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.trim.R
     test.trim: (5 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.trimSum.R
     test.trimSum: (10 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.unknown.R
     test.NAToUnknown: FAILURE !! (check number 17)
     Error in checkIdentical(NAToUnknown(xPOSIXct, unknown = POSIXctUnk), xPOSIXctUnk) :
     FALSE
    
     test.isUnknown: (38 checks) ... OK (0.01 seconds)
     test.unknownToNA: FAILURE !! (check number 13)
     Error in checkIdentical(unknownToNA(xPOSIXctUnk, unknown = POSIXctUnk), :
     FALSE
    
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.wideByFactor.R
     test.wideByFactor: (10 checks) ... OK (0.01 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.write.fwf.R
     test.write.fwf: (22 checks) ... OK (0.09 seconds)
    
     RUnit reports also written to
     /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdata.Rcheck/tests/unitTests/report.(txt|html)
    
     Error:
    
     RUnit testing failed:
     - #test failures: 2
     - #R errors: 0
    
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 2.18.0
Check: tests
Result: ERROR
     Running ‘runRUnitTests.R’ [1s/2s]
     Running ‘test.humanReadable.R’ [1s/1s]
     Comparing ‘test.humanReadable.Rout’ to ‘test.humanReadable.Rout.save’ ... OK
     Running ‘test.read.xls.R’ [16s/27s]
     Comparing ‘test.read.xls.Rout’ to ‘test.read.xls.Rout.save’ ... OK
     Running ‘test.reorder.factor.R’ [0s/1s]
     Comparing ‘test.reorder.factor.Rout’ to ‘test.reorder.factor.Rout.save’ ... OK
     Running ‘test.write.fwf.eol.R’ [1s/1s]
     Running ‘tests.write.fwf.R’ [1s/2s]
     Comparing ‘tests.write.fwf.Rout’ to ‘tests.write.fwf.Rout.save’ ... OK
    Running the tests in ‘tests/runRUnitTests.R’ failed.
    Complete output:
     > ### runRUnitTests.R
     > ###------------------------------------------------------------------------
     > ### What: Run RUnit tests (the core)- R code
     > ### $Id$
     > ### Time-stamp: <2008-12-30 12:52:51 ggorjan>
     > ###------------------------------------------------------------------------
     >
     > ## The setup seems to be quite messy, but it is so to enable use of this in
     > ## several ways as shown bellow.
     >
     > ## "R CMD check" way should be the most authoritative way to run the RUnit
     > ## tests for a developer. RUnit tests are issued during R CMD check of the
     > ## package due to example section of .runRUnitTests() function. If any test
     > ## fails (failure) or if there are any R errors during RUnit testing, R CMD
     > ## check fails. These are variable values specific for this way:
     > ## - .path DEVEL/PATH/PKG.Rcheck/PKG/unitTests
     > ## - .way function
     >
     > ## ".runRUnitTests()" way from within R after library(PKG) is handy for
     > ## package useRs, since it enables useRs to be sure that all tests pass for
     > ## their installation. This is just a convenient wrapper function to run
     > ## the RUnit testing suite. These are variable values specific for this
     > ## way:
     > ## - .path INSTALL/PATH/PKG/unitTests
     > ## - .way function
     >
     > ## "Shell" way is another possibility mainly for a developer in order to
     > ## skip possibly lengthy R CMD check and perform just RUnit testing with an
     > ## installed version of a pcakage. These are variable values specific for
     > ## this way:
     > ## - .path DEVEL/PATH/PKG/inst/unitTests
     > ## - .way shell
     > ##
     > ## Rscript runRUnitTests.R
     > ## R CMD BATCH runRUnitTests.R
     > ## make
     > ## make all
     >
     > PKG <- 'gdata'
     >
     > if(require("RUnit", quietly=TRUE))
     + {
     +
     + path <- normalizePath("unitTests")
     +
     + cat("\nRunning unit tests\n")
     + print(list(pkg=PKG, getwd=getwd(), pathToUnitTests=path))
     +
     + library(package=PKG, character.only=TRUE)
     +
     + testFileRegexp <- "^runit.+\\.[rR]$"
     +
     + ## Debugging echo
     + cat("\nRunning RUnit tests\n")
     + print(list(pkg=PKG,
     + getwd=getwd(),
     + pathToRUnitTests=path))
     +
     + ## Define tests
     + testSuite <- defineTestSuite(name=paste(PKG, "RUnit testing"),
     + dirs=path,
     + testFileRegexp=testFileRegexp
     + )
     +
     + ## Run
     + tests <- runTestSuite(testSuite)
     +
     + if(file.access(path, 02) != 0)
     + {
     + ## cannot write to path -> use writable one
     + tdir <- tempfile(paste(PKG, "RUnitTests", sep="_"))
     + dir.create(tdir)
     + pathReport <- file.path(tdir, "report")
     + }
     + else
     + {
     + pathReport <- file.path(path, "report")
     + }
     +
     + ## Print results:
     + printTextProtocol(tests)
     + printTextProtocol(tests,
     + fileName=paste(pathReport, ".txt", sep=""))
     +
     + ## Print HTML Version of results:
     + printHTMLProtocol(tests,
     + fileName=paste(pathReport, ".html", sep=""))
     +
     + cat("\nRUnit reports also written to\n",
     + pathReport, ".(txt|html)\n\n", sep="")
     +
     + ## Return stop() to cause R CMD check stop in case of
     + ## - failures i.e. FALSE to RUnit tests or
     + ## - errors i.e. R errors
     + tmp <- getErrors(tests)
     + if(tmp$nFail > 0 || tmp$nErr > 0)
     + {
     + stop(paste("\n\nRUnit testing failed:\n",
     + " - #test failures: ", tmp$nFail, "\n",
     + " - #R errors: ", tmp$nErr, "\n\n", sep="")
     + )
     + }
     + } else {
     +
     + cat("R package 'RUnit' cannot be loaded - no unit tests run\n",
     + "for package", PKG,"\n")
     +
     + }
    
     Running unit tests
     $pkg
     [1] "gdata"
    
     $getwd
     [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests"
    
     $pathToUnitTests
     [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests/unitTests"
    
     gdata: read.xls support for 'XLS' (Excel 97-2004) files ENABLED.
    
     gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.
    
     Attaching package: 'gdata'
    
     The following object is masked from 'package:stats':
    
     nobs
    
     The following object is masked from 'package:utils':
    
     object.size
    
     The following object is masked from 'package:base':
    
     startsWith
    
    
     Running RUnit tests
     $pkg
     [1] "gdata"
    
     $getwd
     [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests"
    
     $pathToRUnitTests
     [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests/unitTests"
    
    
    
     Executing test function test.bindData ... Error in bindData(x = 1:10, y = 1:10) : 'x' must be a data frame
     Error in bindData(x = matrix(1:10), y = matrix(1:10)) :
     'x' must be a data frame
     done successfully.
    
    
    
     Executing test function test.cbindX ... done successfully.
    
    
    
     Executing test function test.drop.levels ... done successfully.
    
    
    
     Executing test function test.getDay ... Error in getDay.default(x = num) :
     'getDay' can only be used on objects of a date/time class
     Error in getDay.default(x = cha) :
     'getDay' can only be used on objects of a date/time class
     Error in getDay.default(x = fac) :
     'getDay' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getHour ... Error in getHour.default(x = num) :
     'getHour' can only be used on objects of a date/time class
     Error in getHour.default(x = cha) :
     'getHour' can only be used on objects of a date/time class
     Error in getHour.default(x = fac) :
     'getHour' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getMin ... Error in getMin.default(x = num) :
     'getMin' can only be used on objects of a date/time class
     Error in getMin.default(x = cha) :
     'getMin' can only be used on objects of a date/time class
     Error in getMin.default(x = fac) :
     'getMin' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getMonth ... Error in getMonth.default(x = num) :
     'getMonth' can only be used on objects of a date/time class
     Error in getMonth.default(x = cha) :
     'getMonth' can only be used on objects of a date/time class
     Error in getMonth.default(x = fac) :
     'getMonth' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getSec ... Error in getSec.default(x = num) :
     'getSec' can only be used on objects of a date/time class
     Error in getSec.default(x = cha) :
     'getSec' can only be used on objects of a date/time class
     Error in getSec.default(x = fac) :
     'getSec' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getYear ... Error in getYear.default(x = num) :
     'getYear' can only be used on objects of a date/time class
     Error in getYear.default(x = cha) :
     'getYear' can only be used on objects of a date/time class
     Error in getYear.default(x = fac) :
     'getYear' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.cLevelsMap ... Error in c.listLevelsMap(x, sort = sort, recursive = TRUE) :
     can not combine integer "levelsMaps"
     done successfully.
    
    
    
     Executing test function test.checkLevelsMap ... Error in gdata:::.checkLevelsMap(x = "A", method = "raw") :
     '"A"' must be <08> a named list
     Error in gdata:::.checkLevelsMap(x = list("A"), method = "raw") :
     'list("A")' must be <08> a named list
     Error in gdata:::.checkLevelsMap(x = fMapInt, method = "class") :
     'fMapInt' must be a "levelsMap"
     Error in gdata:::.checkListLevelsMap(x = map, method = "class") :
     'map' must be a "listLevelsMap"
     Error in gdata:::.checkListLevelsMap(x = map1, method = "class") :
     'map1' must be also a list of "levelsMap"
     done successfully.
    
    
    
     Executing test function test.mapLevels ... Error in mapLevels.default(1:3) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     Error in mapLevels.default(1.5) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     Error in mapLevels.list(l, combine = TRUE) :
     can not combine integer "levelsMaps"
     Error in mapLevels.default(X[[i]], ...) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     Error in mapLevels.default(X[[i]], ...) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     done successfully.
    
    
    
     Executing test function test.mapLevels<- ... Error in `mapLevels<-.default`(1.1, value = 2) :
     'x' must be either: "integer", "character", "factor"
     Error in `mapLevels<-.default`(complex(1.1), value = 2) :
     'x' must be either: "integer", "character", "factor"
     Error in `mapLevels<-.default`(as.character(f), value = fMapInt) :
     can not apply integer "levelsMap" to "character"
     Error in is.levelsMap(x) : object 'chaMapCha' not found
     Error in `mapLevels<-.default`(as.character(f), value = fMapFuzz) :
     all components of 'value' must be of the same class
     Error in `mapLevels<-.default`(as.integer(f), value = fMapFuzz) :
     all components of 'value' must be of the same class
     done successfully.
    
    
    
     Executing test function test.uniqueLevelsMap ... done successfully.
    
    
    
     Executing test function test.nPairs ... Error in nPairs(x = x) : 'x' must be a data.frame or a matrix
     Error in nPairs(x = table(x)) : 'x' must be a data.frame or a matrix
     done successfully.
    
    
    
     Executing test function test.reorder.factor ... done successfully.
    
    
    
     Executing test function test.trim ... done successfully.
    
    
    
     Executing test function test.trimSum ... Error in trimSum(matrix(1:10)) : 'x' must be a vector - for now
     Error in trimSum(data.frame(1:10)) : 'x' must be a vector - for now
     Error in trimSum(list(1:10)) : 'x' must be a vector - for now
     Error in trimSum(letters) : 'x' must be numeric
     Error in trimSum(x = 1:10, n = 11) :
     'n' must be smaller than the length of x
     Error in trimSum(x = 1, n = 1) : 'n' must be smaller than the length of x
     done successfully.
    
    
    
     Executing test function test.NAToUnknown ... Error in NAToUnknown.default(xInt, unknown = unkC) :
     'unknown' must be a single value
     In addition: Warning message:
     new level is introduced: notAvail
     Error in NAToUnknown.default(xInt, unknown = unkL) :
     'unknown' must be a single value
     Error in NAToUnknown.default(xCha, unknown = chaUnk1) :
     'x' already has value "-"
     Error in NAToUnknown.factor(xFac, unknown = facLev) :
     'x' already has level "A"
     Timing stopped at: 0.006 0 0.006
     Error in checkIdentical(NAToUnknown(xPOSIXct, unknown = POSIXctUnk), xPOSIXctUnk) :
     FALSE
    
     In addition: Warning message:
     new level is introduced: NA
     done successfully.
    
    
    
     Executing test function test.isUnknown ... Error in .unknownList(x = x, unknown = unknown) :
     name(s) '' not in names of 'x'
     done successfully.
    
    
    
     Executing test function test.unknownToNA ... Timing stopped at: 0.001 0 0.001
     Error in checkIdentical(unknownToNA(xPOSIXctUnk, unknown = POSIXctUnk), :
     FALSE
    
     done successfully.
    
    
    
     Executing test function test.wideByFactor ... Error in wideByFactor(x = 1:10) : 'x' must be a data frame
     Error in wideByFactor(x = matrix(1:10)) : 'x' must be a data frame
     Error in wideByFactor(x = tmp, factor = c("f1", "f2")) :
     'factor' can be only of length one
     Error in wideByFactor(x = tmp, factor = "c1") :
     column defined in 'factor' must be a factor
     done successfully.
    
    
    
     Executing test function test.write.fwf ... Error in write.fwf(1:10) : 'x' must be a data.frame or matrix
     Error in write.fwf(list(1:10)) : 'x' must be a data.frame or matrix
     Error in write.fwf(data.frame(1:10, letters[1:10]), na = c("", " ")) :
     only single value can be defined for 'na'
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     a b c d
     123 3.141593 1e+08 1e+222
     int1
     1
     2
     3
     4
    
     4
     5
     6
     7
     8
     9
     int1
     1
     2
     3
     4
     1234
     4
     5
     6
     7
     8
     9
     row num1 num2
     1 1
     2 2 1.0
     3 3 1.5
     4 4 2.0
     5 5 2.5
     6 6 3.0
     7 7 3.5
     8 8 4.0
     9 9 4.5
     10 10 5.0
     11 5.5
     row num1 num2
     1 1
     2 2 1.0
     3 3 1.5
     4 4 2.0
     5 5 2.5
     6 6 3.0
     7 7 3.5
     8 8 4.0
     9 9 4.5
     10 10 5.0
     11 5.5
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     num1
     1
     2
     3
     4
     5
     6
     7
     8
     9
     10
    
     num1
     1
     2
     3
     4
     5
     6
     7
     8
     9
     10
    
     Error in write.fwf(testData[, c("num1", "num2")], width = 2) :
     'width' (2) was too small for columns: num2
     'width' should be at least (3)
     In addition: Warning message:
     In write.fwf(testData[, c("num1", "num2")], width = 2) : recycling 'width'
     Error in write.fwf(testData[, c("num1", "num2")], width = c(2, 1)) :
     'width' (1) was too small for columns: num2
     'width' should be at least (3)
    
     DONE.
    
     done successfully.
    
     RUNIT TEST PROTOCOL -- Fri Sep 18 09:36:35 2020
     ***********************************************
     Number of test functions: 23
     Number of errors: 0
     Number of failures: 2
    
    
     1 Test Suite :
     gdata RUnit testing - 23 test functions, 0 errors, 2 failures
     FAILURE in test.NAToUnknown: Error in checkIdentical(NAToUnknown(xPOSIXct, unknown = POSIXctUnk), xPOSIXctUnk) :
     FALSE
    
     FAILURE in test.unknownToNA: Error in checkIdentical(unknownToNA(xPOSIXctUnk, unknown = POSIXctUnk), :
     FALSE
    
    
    
    
     Details
     ***************************
     Test Suite: gdata RUnit testing
     Test function regexp: ^test.+
     Test file regexp: ^runit.+\.[rR]$
     Involved directory:
     /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests/unitTests
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.bindData.R
     test.bindData: (11 checks) ... OK (0.03 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.cbindX.R
     test.cbindX: (5 checks) ... OK (0.03 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.drop.levels.R
     test.drop.levels: (3 checks) ... OK (0.02 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.getDateTimeParts.R
     test.getDay: (6 checks) ... OK (0 seconds)
     test.getHour: (3 checks) ... OK (0 seconds)
     test.getMin: (3 checks) ... OK (0 seconds)
     test.getMonth: (6 checks) ... OK (0 seconds)
     test.getSec: (3 checks) ... OK (0 seconds)
     test.getYear: (6 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.mapLevels.R
     test.cLevelsMap: (8 checks) ... OK (0.01 seconds)
     test.checkLevelsMap: (5 checks) ... OK (0 seconds)
     test.mapLevels: (26 checks) ... OK (0.01 seconds)
     test.mapLevels<-: (19 checks) ... OK (0.01 seconds)
     test.uniqueLevelsMap: (1 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.nPairs.R
     test.nPairs: (8 checks) ... OK (0.01 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.reorder.factor.R
     test.reorder.factor: (5 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.trim.R
     test.trim: (5 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.trimSum.R
     test.trimSum: (10 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.unknown.R
     test.NAToUnknown: FAILURE !! (check number 17)
     Error in checkIdentical(NAToUnknown(xPOSIXct, unknown = POSIXctUnk), xPOSIXctUnk) :
     FALSE
    
     test.isUnknown: (38 checks) ... OK (0.01 seconds)
     test.unknownToNA: FAILURE !! (check number 13)
     Error in checkIdentical(unknownToNA(xPOSIXctUnk, unknown = POSIXctUnk), :
     FALSE
    
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.wideByFactor.R
     test.wideByFactor: (10 checks) ... OK (0.01 seconds)
     ---------------------------
     Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests/unitTests/runit.write.fwf.R
     test.write.fwf: (22 checks) ... OK (0.07 seconds)
    
     RUnit reports also written to
     /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdata.Rcheck/tests/unitTests/report.(txt|html)
    
     Error:
    
     RUnit testing failed:
     - #test failures: 2
     - #R errors: 0
    
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 2.18.0
Check: Rd cross-references
Result: NOTE
    Undeclared package ‘reshape’ in Rd xrefs
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 2.18.0
Check: tests
Result: ERROR
     Running ‘runRUnitTests.R’
     Running ‘test.humanReadable.R’
     Comparing ‘test.humanReadable.Rout’ to ‘test.humanReadable.Rout.save’ ... OK
     Running ‘test.read.xls.R’ [30s/38s]
     Comparing ‘test.read.xls.Rout’ to ‘test.read.xls.Rout.save’ ... OK
     Running ‘test.reorder.factor.R’
     Comparing ‘test.reorder.factor.Rout’ to ‘test.reorder.factor.Rout.save’ ... OK
     Running ‘test.write.fwf.eol.R’
     Running ‘tests.write.fwf.R’
     Comparing ‘tests.write.fwf.Rout’ to ‘tests.write.fwf.Rout.save’ ... OK
    Running the tests in ‘tests/runRUnitTests.R’ failed.
    Complete output:
     > ### runRUnitTests.R
     > ###------------------------------------------------------------------------
     > ### What: Run RUnit tests (the core)- R code
     > ### $Id$
     > ### Time-stamp: <2008-12-30 12:52:51 ggorjan>
     > ###------------------------------------------------------------------------
     >
     > ## The setup seems to be quite messy, but it is so to enable use of this in
     > ## several ways as shown bellow.
     >
     > ## "R CMD check" way should be the most authoritative way to run the RUnit
     > ## tests for a developer. RUnit tests are issued during R CMD check of the
     > ## package due to example section of .runRUnitTests() function. If any test
     > ## fails (failure) or if there are any R errors during RUnit testing, R CMD
     > ## check fails. These are variable values specific for this way:
     > ## - .path DEVEL/PATH/PKG.Rcheck/PKG/unitTests
     > ## - .way function
     >
     > ## ".runRUnitTests()" way from within R after library(PKG) is handy for
     > ## package useRs, since it enables useRs to be sure that all tests pass for
     > ## their installation. This is just a convenient wrapper function to run
     > ## the RUnit testing suite. These are variable values specific for this
     > ## way:
     > ## - .path INSTALL/PATH/PKG/unitTests
     > ## - .way function
     >
     > ## "Shell" way is another possibility mainly for a developer in order to
     > ## skip possibly lengthy R CMD check and perform just RUnit testing with an
     > ## installed version of a pcakage. These are variable values specific for
     > ## this way:
     > ## - .path DEVEL/PATH/PKG/inst/unitTests
     > ## - .way shell
     > ##
     > ## Rscript runRUnitTests.R
     > ## R CMD BATCH runRUnitTests.R
     > ## make
     > ## make all
     >
     > PKG <- 'gdata'
     >
     > if(require("RUnit", quietly=TRUE))
     + {
     +
     + path <- normalizePath("unitTests")
     +
     + cat("\nRunning unit tests\n")
     + print(list(pkg=PKG, getwd=getwd(), pathToUnitTests=path))
     +
     + library(package=PKG, character.only=TRUE)
     +
     + testFileRegexp <- "^runit.+\\.[rR]$"
     +
     + ## Debugging echo
     + cat("\nRunning RUnit tests\n")
     + print(list(pkg=PKG,
     + getwd=getwd(),
     + pathToRUnitTests=path))
     +
     + ## Define tests
     + testSuite <- defineTestSuite(name=paste(PKG, "RUnit testing"),
     + dirs=path,
     + testFileRegexp=testFileRegexp
     + )
     +
     + ## Run
     + tests <- runTestSuite(testSuite)
     +
     + if(file.access(path, 02) != 0)
     + {
     + ## cannot write to path -> use writable one
     + tdir <- tempfile(paste(PKG, "RUnitTests", sep="_"))
     + dir.create(tdir)
     + pathReport <- file.path(tdir, "report")
     + }
     + else
     + {
     + pathReport <- file.path(path, "report")
     + }
     +
     + ## Print results:
     + printTextProtocol(tests)
     + printTextProtocol(tests,
     + fileName=paste(pathReport, ".txt", sep=""))
     +
     + ## Print HTML Version of results:
     + printHTMLProtocol(tests,
     + fileName=paste(pathReport, ".html", sep=""))
     +
     + cat("\nRUnit reports also written to\n",
     + pathReport, ".(txt|html)\n\n", sep="")
     +
     + ## Return stop() to cause R CMD check stop in case of
     + ## - failures i.e. FALSE to RUnit tests or
     + ## - errors i.e. R errors
     + tmp <- getErrors(tests)
     + if(tmp$nFail > 0 || tmp$nErr > 0)
     + {
     + stop(paste("\n\nRUnit testing failed:\n",
     + " - #test failures: ", tmp$nFail, "\n",
     + " - #R errors: ", tmp$nErr, "\n\n", sep="")
     + )
     + }
     + } else {
     +
     + cat("R package 'RUnit' cannot be loaded - no unit tests run\n",
     + "for package", PKG,"\n")
     +
     + }
    
     Running unit tests
     $pkg
     [1] "gdata"
    
     $getwd
     [1] "/data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests"
    
     $pathToUnitTests
     [1] "/data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests/unitTests"
    
     gdata: read.xls support for 'XLS' (Excel 97-2004) files ENABLED.
    
     gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.
    
     Attaching package: 'gdata'
    
     The following object is masked from 'package:stats':
    
     nobs
    
     The following object is masked from 'package:utils':
    
     object.size
    
     The following object is masked from 'package:base':
    
     startsWith
    
    
     Running RUnit tests
     $pkg
     [1] "gdata"
    
     $getwd
     [1] "/data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests"
    
     $pathToRUnitTests
     [1] "/data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests/unitTests"
    
    
    
     Executing test function test.bindData ... Error in bindData(x = 1:10, y = 1:10) : 'x' must be a data frame
     Error in bindData(x = matrix(1:10), y = matrix(1:10)) :
     'x' must be a data frame
     done successfully.
    
    
    
     Executing test function test.cbindX ... done successfully.
    
    
    
     Executing test function test.drop.levels ... done successfully.
    
    
    
     Executing test function test.getDay ... Error in getDay.default(x = num) :
     'getDay' can only be used on objects of a date/time class
     Error in getDay.default(x = cha) :
     'getDay' can only be used on objects of a date/time class
     Error in getDay.default(x = fac) :
     'getDay' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getHour ... Error in getHour.default(x = num) :
     'getHour' can only be used on objects of a date/time class
     Error in getHour.default(x = cha) :
     'getHour' can only be used on objects of a date/time class
     Error in getHour.default(x = fac) :
     'getHour' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getMin ... Error in getMin.default(x = num) :
     'getMin' can only be used on objects of a date/time class
     Error in getMin.default(x = cha) :
     'getMin' can only be used on objects of a date/time class
     Error in getMin.default(x = fac) :
     'getMin' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getMonth ... Error in getMonth.default(x = num) :
     'getMonth' can only be used on objects of a date/time class
     Error in getMonth.default(x = cha) :
     'getMonth' can only be used on objects of a date/time class
     Error in getMonth.default(x = fac) :
     'getMonth' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getSec ... Error in getSec.default(x = num) :
     'getSec' can only be used on objects of a date/time class
     Error in getSec.default(x = cha) :
     'getSec' can only be used on objects of a date/time class
     Error in getSec.default(x = fac) :
     'getSec' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getYear ... Error in getYear.default(x = num) :
     'getYear' can only be used on objects of a date/time class
     Error in getYear.default(x = cha) :
     'getYear' can only be used on objects of a date/time class
     Error in getYear.default(x = fac) :
     'getYear' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.cLevelsMap ... Error in c.listLevelsMap(x, sort = sort, recursive = TRUE) :
     can not combine integer "levelsMaps"
     done successfully.
    
    
    
     Executing test function test.checkLevelsMap ... Error in gdata:::.checkLevelsMap(x = "A", method = "raw") :
     '"A"' must be <08> a named list
     Error in gdata:::.checkLevelsMap(x = list("A"), method = "raw") :
     'list("A")' must be <08> a named list
     Error in gdata:::.checkLevelsMap(x = fMapInt, method = "class") :
     'fMapInt' must be a "levelsMap"
     Error in gdata:::.checkListLevelsMap(x = map, method = "class") :
     'map' must be a "listLevelsMap"
     Error in gdata:::.checkListLevelsMap(x = map1, method = "class") :
     'map1' must be also a list of "levelsMap"
     done successfully.
    
    
    
     Executing test function test.mapLevels ... Error in mapLevels.default(1:3) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     Error in mapLevels.default(1.5) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     Error in mapLevels.list(l, combine = TRUE) :
     can not combine integer "levelsMaps"
     Error in mapLevels.default(X[[i]], ...) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     Error in mapLevels.default(X[[i]], ...) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     done successfully.
    
    
    
     Executing test function test.mapLevels<- ... Error in `mapLevels<-.default`(1.1, value = 2) :
     'x' must be either: "integer", "character", "factor"
     Error in `mapLevels<-.default`(complex(1.1), value = 2) :
     'x' must be either: "integer", "character", "factor"
     Error in `mapLevels<-.default`(as.character(f), value = fMapInt) :
     can not apply integer "levelsMap" to "character"
     Error in is.levelsMap(x) : object 'chaMapCha' not found
     Error in `mapLevels<-.default`(as.character(f), value = fMapFuzz) :
     all components of 'value' must be of the same class
     Error in `mapLevels<-.default`(as.integer(f), value = fMapFuzz) :
     all components of 'value' must be of the same class
     done successfully.
    
    
    
     Executing test function test.uniqueLevelsMap ... done successfully.
    
    
    
     Executing test function test.nPairs ... Error in nPairs(x = x) : 'x' must be a data.frame or a matrix
     Error in nPairs(x = table(x)) : 'x' must be a data.frame or a matrix
     done successfully.
    
    
    
     Executing test function test.reorder.factor ... done successfully.
    
    
    
     Executing test function test.trim ... done successfully.
    
    
    
     Executing test function test.trimSum ... Error in trimSum(matrix(1:10)) : 'x' must be a vector - for now
     Error in trimSum(data.frame(1:10)) : 'x' must be a vector - for now
     Error in trimSum(list(1:10)) : 'x' must be a vector - for now
     Error in trimSum(letters) : 'x' must be numeric
     Error in trimSum(x = 1:10, n = 11) :
     'n' must be smaller than the length of x
     Error in trimSum(x = 1, n = 1) : 'n' must be smaller than the length of x
     done successfully.
    
    
    
     Executing test function test.NAToUnknown ... Error in NAToUnknown.default(xInt, unknown = unkC) :
     'unknown' must be a single value
     In addition: Warning message:
     new level is introduced: notAvail
     Error in NAToUnknown.default(xInt, unknown = unkL) :
     'unknown' must be a single value
     Error in NAToUnknown.default(xCha, unknown = chaUnk1) :
     'x' already has value "-"
     Error in NAToUnknown.factor(xFac, unknown = facLev) :
     'x' already has level "A"
     Timing stopped at: 0.009 0 0.009
     Error in checkIdentical(NAToUnknown(xPOSIXct, unknown = POSIXctUnk), xPOSIXctUnk) :
     FALSE
    
     In addition: Warning message:
     new level is introduced: NA
     done successfully.
    
    
    
     Executing test function test.isUnknown ... Error in .unknownList(x = x, unknown = unknown) :
     name(s) '' not in names of 'x'
     done successfully.
    
    
    
     Executing test function test.unknownToNA ... Timing stopped at: 0.002 0 0.002
     Error in checkIdentical(unknownToNA(xPOSIXctUnk, unknown = POSIXctUnk), :
     FALSE
    
     done successfully.
    
    
    
     Executing test function test.wideByFactor ... Error in wideByFactor(x = 1:10) : 'x' must be a data frame
     Error in wideByFactor(x = matrix(1:10)) : 'x' must be a data frame
     Error in wideByFactor(x = tmp, factor = c("f1", "f2")) :
     'factor' can be only of length one
     Error in wideByFactor(x = tmp, factor = "c1") :
     column defined in 'factor' must be a factor
     done successfully.
    
    
    
     Executing test function test.write.fwf ... Error in write.fwf(1:10) : 'x' must be a data.frame or matrix
     Error in write.fwf(list(1:10)) : 'x' must be a data.frame or matrix
     Error in write.fwf(data.frame(1:10, letters[1:10]), na = c("", " ")) :
     only single value can be defined for 'na'
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     a b c d
     123 3.141593 1e+08 1e+222
     int1
     1
     2
     3
     4
    
     4
     5
     6
     7
     8
     9
     int1
     1
     2
     3
     4
     1234
     4
     5
     6
     7
     8
     9
     row num1 num2
     1 1
     2 2 1.0
     3 3 1.5
     4 4 2.0
     5 5 2.5
     6 6 3.0
     7 7 3.5
     8 8 4.0
     9 9 4.5
     10 10 5.0
     11 5.5
     row num1 num2
     1 1
     2 2 1.0
     3 3 1.5
     4 4 2.0
     5 5 2.5
     6 6 3.0
     7 7 3.5
     8 8 4.0
     9 9 4.5
     10 10 5.0
     11 5.5
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     num1
     1
     2
     3
     4
     5
     6
     7
     8
     9
     10
    
     num1
     1
     2
     3
     4
     5
     6
     7
     8
     9
     10
    
     Error in write.fwf(testData[, c("num1", "num2")], width = 2) :
     'width' (2) was too small for columns: num2
     'width' should be at least (3)
     In addition: Warning message:
     In write.fwf(testData[, c("num1", "num2")], width = 2) : recycling 'width'
     Error in write.fwf(testData[, c("num1", "num2")], width = c(2, 1)) :
     'width' (1) was too small for columns: num2
     'width' should be at least (3)
    
     DONE.
    
     done successfully.
    
     RUNIT TEST PROTOCOL -- Sat Sep 12 14:44:41 2020
     ***********************************************
     Number of test functions: 23
     Number of errors: 0
     Number of failures: 2
    
    
     1 Test Suite :
     gdata RUnit testing - 23 test functions, 0 errors, 2 failures
     FAILURE in test.NAToUnknown: Error in checkIdentical(NAToUnknown(xPOSIXct, unknown = POSIXctUnk), xPOSIXctUnk) :
     FALSE
    
     FAILURE in test.unknownToNA: Error in checkIdentical(unknownToNA(xPOSIXctUnk, unknown = POSIXctUnk), :
     FALSE
    
    
    
    
     Details
     ***************************
     Test Suite: gdata RUnit testing
     Test function regexp: ^test.+
     Test file regexp: ^runit.+\.[rR]$
     Involved directory:
     /data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests/unitTests
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests/unitTests/runit.bindData.R
     test.bindData: (11 checks) ... OK (0.03 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests/unitTests/runit.cbindX.R
     test.cbindX: (5 checks) ... OK (0.02 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests/unitTests/runit.drop.levels.R
     test.drop.levels: (3 checks) ... OK (0.03 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests/unitTests/runit.getDateTimeParts.R
     test.getDay: (6 checks) ... OK (0 seconds)
     test.getHour: (3 checks) ... OK (0 seconds)
     test.getMin: (3 checks) ... OK (0 seconds)
     test.getMonth: (6 checks) ... OK (0 seconds)
     test.getSec: (3 checks) ... OK (0 seconds)
     test.getYear: (6 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests/unitTests/runit.mapLevels.R
     test.cLevelsMap: (8 checks) ... OK (0.02 seconds)
     test.checkLevelsMap: (5 checks) ... OK (0 seconds)
     test.mapLevels: (26 checks) ... OK (0.02 seconds)
     test.mapLevels<-: (19 checks) ... OK (0.02 seconds)
     test.uniqueLevelsMap: (1 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests/unitTests/runit.nPairs.R
     test.nPairs: (8 checks) ... OK (0.01 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests/unitTests/runit.reorder.factor.R
     test.reorder.factor: (5 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests/unitTests/runit.trim.R
     test.trim: (5 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests/unitTests/runit.trimSum.R
     test.trimSum: (10 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests/unitTests/runit.unknown.R
     test.NAToUnknown: FAILURE !! (check number 17)
     Error in checkIdentical(NAToUnknown(xPOSIXct, unknown = POSIXctUnk), xPOSIXctUnk) :
     FALSE
    
     test.isUnknown: (38 checks) ... OK (0.01 seconds)
     test.unknownToNA: FAILURE !! (check number 13)
     Error in checkIdentical(unknownToNA(xPOSIXctUnk, unknown = POSIXctUnk), :
     FALSE
    
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests/unitTests/runit.wideByFactor.R
     test.wideByFactor: (10 checks) ... OK (0.02 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests/unitTests/runit.write.fwf.R
     test.write.fwf: (22 checks) ... OK (0.1 seconds)
    
     RUnit reports also written to
     /data/gannet/ripley/R/packages/tests-clang/gdata.Rcheck/tests/unitTests/report.(txt|html)
    
     Error:
    
     RUnit testing failed:
     - #test failures: 2
     - #R errors: 0
    
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 2.18.0
Check: tests
Result: ERROR
     Running ‘runRUnitTests.R’
     Running ‘test.humanReadable.R’
     Comparing ‘test.humanReadable.Rout’ to ‘test.humanReadable.Rout.save’ ... OK
     Running ‘test.read.xls.R’ [30s/37s]
     Comparing ‘test.read.xls.Rout’ to ‘test.read.xls.Rout.save’ ... OK
     Running ‘test.reorder.factor.R’
     Comparing ‘test.reorder.factor.Rout’ to ‘test.reorder.factor.Rout.save’ ... OK
     Running ‘test.write.fwf.eol.R’
     Running ‘tests.write.fwf.R’
     Comparing ‘tests.write.fwf.Rout’ to ‘tests.write.fwf.Rout.save’ ... OK
    Running the tests in ‘tests/runRUnitTests.R’ failed.
    Complete output:
     > ### runRUnitTests.R
     > ###------------------------------------------------------------------------
     > ### What: Run RUnit tests (the core)- R code
     > ### $Id$
     > ### Time-stamp: <2008-12-30 12:52:51 ggorjan>
     > ###------------------------------------------------------------------------
     >
     > ## The setup seems to be quite messy, but it is so to enable use of this in
     > ## several ways as shown bellow.
     >
     > ## "R CMD check" way should be the most authoritative way to run the RUnit
     > ## tests for a developer. RUnit tests are issued during R CMD check of the
     > ## package due to example section of .runRUnitTests() function. If any test
     > ## fails (failure) or if there are any R errors during RUnit testing, R CMD
     > ## check fails. These are variable values specific for this way:
     > ## - .path DEVEL/PATH/PKG.Rcheck/PKG/unitTests
     > ## - .way function
     >
     > ## ".runRUnitTests()" way from within R after library(PKG) is handy for
     > ## package useRs, since it enables useRs to be sure that all tests pass for
     > ## their installation. This is just a convenient wrapper function to run
     > ## the RUnit testing suite. These are variable values specific for this
     > ## way:
     > ## - .path INSTALL/PATH/PKG/unitTests
     > ## - .way function
     >
     > ## "Shell" way is another possibility mainly for a developer in order to
     > ## skip possibly lengthy R CMD check and perform just RUnit testing with an
     > ## installed version of a pcakage. These are variable values specific for
     > ## this way:
     > ## - .path DEVEL/PATH/PKG/inst/unitTests
     > ## - .way shell
     > ##
     > ## Rscript runRUnitTests.R
     > ## R CMD BATCH runRUnitTests.R
     > ## make
     > ## make all
     >
     > PKG <- 'gdata'
     >
     > if(require("RUnit", quietly=TRUE))
     + {
     +
     + path <- normalizePath("unitTests")
     +
     + cat("\nRunning unit tests\n")
     + print(list(pkg=PKG, getwd=getwd(), pathToUnitTests=path))
     +
     + library(package=PKG, character.only=TRUE)
     +
     + testFileRegexp <- "^runit.+\\.[rR]$"
     +
     + ## Debugging echo
     + cat("\nRunning RUnit tests\n")
     + print(list(pkg=PKG,
     + getwd=getwd(),
     + pathToRUnitTests=path))
     +
     + ## Define tests
     + testSuite <- defineTestSuite(name=paste(PKG, "RUnit testing"),
     + dirs=path,
     + testFileRegexp=testFileRegexp
     + )
     +
     + ## Run
     + tests <- runTestSuite(testSuite)
     +
     + if(file.access(path, 02) != 0)
     + {
     + ## cannot write to path -> use writable one
     + tdir <- tempfile(paste(PKG, "RUnitTests", sep="_"))
     + dir.create(tdir)
     + pathReport <- file.path(tdir, "report")
     + }
     + else
     + {
     + pathReport <- file.path(path, "report")
     + }
     +
     + ## Print results:
     + printTextProtocol(tests)
     + printTextProtocol(tests,
     + fileName=paste(pathReport, ".txt", sep=""))
     +
     + ## Print HTML Version of results:
     + printHTMLProtocol(tests,
     + fileName=paste(pathReport, ".html", sep=""))
     +
     + cat("\nRUnit reports also written to\n",
     + pathReport, ".(txt|html)\n\n", sep="")
     +
     + ## Return stop() to cause R CMD check stop in case of
     + ## - failures i.e. FALSE to RUnit tests or
     + ## - errors i.e. R errors
     + tmp <- getErrors(tests)
     + if(tmp$nFail > 0 || tmp$nErr > 0)
     + {
     + stop(paste("\n\nRUnit testing failed:\n",
     + " - #test failures: ", tmp$nFail, "\n",
     + " - #R errors: ", tmp$nErr, "\n\n", sep="")
     + )
     + }
     + } else {
     +
     + cat("R package 'RUnit' cannot be loaded - no unit tests run\n",
     + "for package", PKG,"\n")
     +
     + }
    
     Running unit tests
     $pkg
     [1] "gdata"
    
     $getwd
     [1] "/data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests"
    
     $pathToUnitTests
     [1] "/data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests/unitTests"
    
     gdata: read.xls support for 'XLS' (Excel 97-2004) files ENABLED.
    
     gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.
    
     Attaching package: 'gdata'
    
     The following object is masked from 'package:stats':
    
     nobs
    
     The following object is masked from 'package:utils':
    
     object.size
    
     The following object is masked from 'package:base':
    
     startsWith
    
    
     Running RUnit tests
     $pkg
     [1] "gdata"
    
     $getwd
     [1] "/data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests"
    
     $pathToRUnitTests
     [1] "/data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests/unitTests"
    
    
    
     Executing test function test.bindData ... Error in bindData(x = 1:10, y = 1:10) : 'x' must be a data frame
     Error in bindData(x = matrix(1:10), y = matrix(1:10)) :
     'x' must be a data frame
     done successfully.
    
    
    
     Executing test function test.cbindX ... done successfully.
    
    
    
     Executing test function test.drop.levels ... done successfully.
    
    
    
     Executing test function test.getDay ... Error in getDay.default(x = num) :
     'getDay' can only be used on objects of a date/time class
     Error in getDay.default(x = cha) :
     'getDay' can only be used on objects of a date/time class
     Error in getDay.default(x = fac) :
     'getDay' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getHour ... Error in getHour.default(x = num) :
     'getHour' can only be used on objects of a date/time class
     Error in getHour.default(x = cha) :
     'getHour' can only be used on objects of a date/time class
     Error in getHour.default(x = fac) :
     'getHour' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getMin ... Error in getMin.default(x = num) :
     'getMin' can only be used on objects of a date/time class
     Error in getMin.default(x = cha) :
     'getMin' can only be used on objects of a date/time class
     Error in getMin.default(x = fac) :
     'getMin' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getMonth ... Error in getMonth.default(x = num) :
     'getMonth' can only be used on objects of a date/time class
     Error in getMonth.default(x = cha) :
     'getMonth' can only be used on objects of a date/time class
     Error in getMonth.default(x = fac) :
     'getMonth' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getSec ... Error in getSec.default(x = num) :
     'getSec' can only be used on objects of a date/time class
     Error in getSec.default(x = cha) :
     'getSec' can only be used on objects of a date/time class
     Error in getSec.default(x = fac) :
     'getSec' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getYear ... Error in getYear.default(x = num) :
     'getYear' can only be used on objects of a date/time class
     Error in getYear.default(x = cha) :
     'getYear' can only be used on objects of a date/time class
     Error in getYear.default(x = fac) :
     'getYear' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.cLevelsMap ... Error in c.listLevelsMap(x, sort = sort, recursive = TRUE) :
     can not combine integer "levelsMaps"
     done successfully.
    
    
    
     Executing test function test.checkLevelsMap ... Error in gdata:::.checkLevelsMap(x = "A", method = "raw") :
     '"A"' must be <08> a named list
     Error in gdata:::.checkLevelsMap(x = list("A"), method = "raw") :
     'list("A")' must be <08> a named list
     Error in gdata:::.checkLevelsMap(x = fMapInt, method = "class") :
     'fMapInt' must be a "levelsMap"
     Error in gdata:::.checkListLevelsMap(x = map, method = "class") :
     'map' must be a "listLevelsMap"
     Error in gdata:::.checkListLevelsMap(x = map1, method = "class") :
     'map1' must be also a list of "levelsMap"
     done successfully.
    
    
    
     Executing test function test.mapLevels ... Error in mapLevels.default(1:3) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     Error in mapLevels.default(1.5) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     Error in mapLevels.list(l, combine = TRUE) :
     can not combine integer "levelsMaps"
     Error in mapLevels.default(X[[i]], ...) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     Error in mapLevels.default(X[[i]], ...) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     done successfully.
    
    
    
     Executing test function test.mapLevels<- ... Error in `mapLevels<-.default`(1.1, value = 2) :
     'x' must be either: "integer", "character", "factor"
     Error in `mapLevels<-.default`(complex(1.1), value = 2) :
     'x' must be either: "integer", "character", "factor"
     Error in `mapLevels<-.default`(as.character(f), value = fMapInt) :
     can not apply integer "levelsMap" to "character"
     Error in is.levelsMap(x) : object 'chaMapCha' not found
     Error in `mapLevels<-.default`(as.character(f), value = fMapFuzz) :
     all components of 'value' must be of the same class
     Error in `mapLevels<-.default`(as.integer(f), value = fMapFuzz) :
     all components of 'value' must be of the same class
     done successfully.
    
    
    
     Executing test function test.uniqueLevelsMap ... done successfully.
    
    
    
     Executing test function test.nPairs ... Error in nPairs(x = x) : 'x' must be a data.frame or a matrix
     Error in nPairs(x = table(x)) : 'x' must be a data.frame or a matrix
     done successfully.
    
    
    
     Executing test function test.reorder.factor ... done successfully.
    
    
    
     Executing test function test.trim ... done successfully.
    
    
    
     Executing test function test.trimSum ... Error in trimSum(matrix(1:10)) : 'x' must be a vector - for now
     Error in trimSum(data.frame(1:10)) : 'x' must be a vector - for now
     Error in trimSum(list(1:10)) : 'x' must be a vector - for now
     Error in trimSum(letters) : 'x' must be numeric
     Error in trimSum(x = 1:10, n = 11) :
     'n' must be smaller than the length of x
     Error in trimSum(x = 1, n = 1) : 'n' must be smaller than the length of x
     done successfully.
    
    
    
     Executing test function test.NAToUnknown ... Error in NAToUnknown.default(xInt, unknown = unkC) :
     'unknown' must be a single value
     In addition: Warning message:
     new level is introduced: notAvail
     Error in NAToUnknown.default(xInt, unknown = unkL) :
     'unknown' must be a single value
     Error in NAToUnknown.default(xCha, unknown = chaUnk1) :
     'x' already has value "-"
     Error in NAToUnknown.factor(xFac, unknown = facLev) :
     'x' already has level "A"
     Timing stopped at: 0.011 0 0.022
     Error in checkIdentical(NAToUnknown(xPOSIXct, unknown = POSIXctUnk), xPOSIXctUnk) :
     FALSE
    
     In addition: Warning message:
     new level is introduced: NA
     done successfully.
    
    
    
     Executing test function test.isUnknown ... Error in .unknownList(x = x, unknown = unknown) :
     name(s) '' not in names of 'x'
     done successfully.
    
    
    
     Executing test function test.unknownToNA ... Timing stopped at: 0.002 0 0.005
     Error in checkIdentical(unknownToNA(xPOSIXctUnk, unknown = POSIXctUnk), :
     FALSE
    
     done successfully.
    
    
    
     Executing test function test.wideByFactor ... Error in wideByFactor(x = 1:10) : 'x' must be a data frame
     Error in wideByFactor(x = matrix(1:10)) : 'x' must be a data frame
     Error in wideByFactor(x = tmp, factor = c("f1", "f2")) :
     'factor' can be only of length one
     Error in wideByFactor(x = tmp, factor = "c1") :
     column defined in 'factor' must be a factor
     done successfully.
    
    
    
     Executing test function test.write.fwf ... Error in write.fwf(1:10) : 'x' must be a data.frame or matrix
     Error in write.fwf(list(1:10)) : 'x' must be a data.frame or matrix
     Error in write.fwf(data.frame(1:10, letters[1:10]), na = c("", " ")) :
     only single value can be defined for 'na'
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     a b c d
     123 3.141593 1e+08 1e+222
     int1
     1
     2
     3
     4
    
     4
     5
     6
     7
     8
     9
     int1
     1
     2
     3
     4
     1234
     4
     5
     6
     7
     8
     9
     row num1 num2
     1 1
     2 2 1.0
     3 3 1.5
     4 4 2.0
     5 5 2.5
     6 6 3.0
     7 7 3.5
     8 8 4.0
     9 9 4.5
     10 10 5.0
     11 5.5
     row num1 num2
     1 1
     2 2 1.0
     3 3 1.5
     4 4 2.0
     5 5 2.5
     6 6 3.0
     7 7 3.5
     8 8 4.0
     9 9 4.5
     10 10 5.0
     11 5.5
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     num1
     1
     2
     3
     4
     5
     6
     7
     8
     9
     10
    
     num1
     1
     2
     3
     4
     5
     6
     7
     8
     9
     10
    
     Error in write.fwf(testData[, c("num1", "num2")], width = 2) :
     'width' (2) was too small for columns: num2
     'width' should be at least (3)
     In addition: Warning message:
     In write.fwf(testData[, c("num1", "num2")], width = 2) : recycling 'width'
     Error in write.fwf(testData[, c("num1", "num2")], width = c(2, 1)) :
     'width' (1) was too small for columns: num2
     'width' should be at least (3)
    
     DONE.
    
     done successfully.
    
     RUNIT TEST PROTOCOL -- Sun Sep 13 17:44:41 2020
     ***********************************************
     Number of test functions: 23
     Number of errors: 0
     Number of failures: 2
    
    
     1 Test Suite :
     gdata RUnit testing - 23 test functions, 0 errors, 2 failures
     FAILURE in test.NAToUnknown: Error in checkIdentical(NAToUnknown(xPOSIXct, unknown = POSIXctUnk), xPOSIXctUnk) :
     FALSE
    
     FAILURE in test.unknownToNA: Error in checkIdentical(unknownToNA(xPOSIXctUnk, unknown = POSIXctUnk), :
     FALSE
    
    
    
    
     Details
     ***************************
     Test Suite: gdata RUnit testing
     Test function regexp: ^test.+
     Test file regexp: ^runit.+\.[rR]$
     Involved directory:
     /data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests/unitTests
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests/unitTests/runit.bindData.R
     test.bindData: (11 checks) ... OK (0.06 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests/unitTests/runit.cbindX.R
     test.cbindX: (5 checks) ... OK (0.05 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests/unitTests/runit.drop.levels.R
     test.drop.levels: (3 checks) ... OK (0.02 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests/unitTests/runit.getDateTimeParts.R
     test.getDay: (6 checks) ... OK (0 seconds)
     test.getHour: (3 checks) ... OK (0 seconds)
     test.getMin: (3 checks) ... OK (0 seconds)
     test.getMonth: (6 checks) ... OK (0 seconds)
     test.getSec: (3 checks) ... OK (0 seconds)
     test.getYear: (6 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests/unitTests/runit.mapLevels.R
     test.cLevelsMap: (8 checks) ... OK (0.01 seconds)
     test.checkLevelsMap: (5 checks) ... OK (0 seconds)
     test.mapLevels: (26 checks) ... OK (0.02 seconds)
     test.mapLevels<-: (19 checks) ... OK (0.02 seconds)
     test.uniqueLevelsMap: (1 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests/unitTests/runit.nPairs.R
     test.nPairs: (8 checks) ... OK (0.01 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests/unitTests/runit.reorder.factor.R
     test.reorder.factor: (5 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests/unitTests/runit.trim.R
     test.trim: (5 checks) ... OK (0 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests/unitTests/runit.trimSum.R
     test.trimSum: (10 checks) ... OK (0.01 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests/unitTests/runit.unknown.R
     test.NAToUnknown: FAILURE !! (check number 17)
     Error in checkIdentical(NAToUnknown(xPOSIXct, unknown = POSIXctUnk), xPOSIXctUnk) :
     FALSE
    
     test.isUnknown: (38 checks) ... OK (0.03 seconds)
     test.unknownToNA: FAILURE !! (check number 13)
     Error in checkIdentical(unknownToNA(xPOSIXctUnk, unknown = POSIXctUnk), :
     FALSE
    
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests/unitTests/runit.wideByFactor.R
     test.wideByFactor: (10 checks) ... OK (0.03 seconds)
     ---------------------------
     Test file: /data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests/unitTests/runit.write.fwf.R
     test.write.fwf: (22 checks) ... OK (0.11 seconds)
    
     RUnit reports also written to
     /data/gannet/ripley/R/packages/tests-devel/gdata.Rcheck/tests/unitTests/report.(txt|html)
    
     Error:
    
     RUnit testing failed:
     - #test failures: 2
     - #R errors: 0
    
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 2.18.0
Check: tests
Result: ERROR
     Running 'runRUnitTests.R' [1s]
     Running 'test.humanReadable.R' [1s]
     Comparing 'test.humanReadable.Rout' to 'test.humanReadable.Rout.save' ...6,11c6
    < gdata: Unable to load perl libaries needed by read.xls()
    < gdata: to support 'XLSX' (Excel 2007+) files.
    <
    < gdata: Run the function 'installXLSXsupport()'
    < gdata: to automatically download and install the perl
    < gdata: libaries needed to support Excel XLS and XLSX formats.
    ---
    > gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.
     Running 'test.read.xls.R' [35s]
     Comparing 'test.read.xls.Rout' to 'test.read.xls.Rout.save' ...6,11c6
    < gdata: Unable to load perl libaries needed by read.xls()
    < gdata: to support 'XLSX' (Excel 2007+) files.
    <
    < gdata: Run the function 'installXLSXsupport()'
    < gdata: to automatically download and install the perl
    < gdata: libaries needed to support Excel XLS and XLSX formats.
    ---
    > gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.
    32,39d26
    < Up/Downgrade not needed.
    < Das System kann den angegebenen Pfad nicht finden.
    < Perl v5.10.0 required--this is only v5.8.8, stopped at Makefile.PL line 5.
    < BEGIN failed--compilation aborted at Makefile.PL line 5.
    < Error in installXLSXsupport() :
    < Unable to install Perl XLSX support libraries.
    <
    <
    45,47d31
    < WARNING: Perl module Compress::Raw::Zlib cannot be loaded.
    < WARNING: Perl module Spreadsheet::ParseXLSX cannot be loaded.
    < WARNING: Microsoft Excel 2007 'XLSX' formatted files will not be processed.
    202,204d185
    < WARNING: Perl module Compress::Raw::Zlib cannot be loaded.
    < WARNING: Perl module Spreadsheet::ParseXLSX cannot be loaded.
    < WARNING: Microsoft Excel 2007 'XLSX' formatted files will not be processed.
    359,361d339
    < WARNING: Perl module Compress::Raw::Zlib cannot be loaded.
    < WARNING: Perl module Spreadsheet::ParseXLSX cannot be loaded.
    < WARNING: Microsoft Excel 2007 'XLSX' formatted files will not be processed.
    537,540c515
    < ************************************************************
    < ** DIFF IN THIS SECTION IS EXPECTED BECAUSE PERL PACKAGES **
    < ** FOR SUPPORTING XLSX ARE NOT INSTALLED **
    < ************************************************************
    ---
    > [1] 4
    556,559c531,532
    < ************************************************************
    < ** DIFF IN THIS SECTION IS EXPECTED BECAUSE PERL PACKAGES **
    < ** FOR SUPPORTING XLSX ARE NOT INSTALLED **
    < ************************************************************
    ---
    > [1] "Sheet First" "Sheet Second"
    > [3] "Sheet with a very long name!" "Sheet with initial text"
    563,565d535
    < WARNING: Perl module Compress::Raw::Zlib cannot be loaded.
    < WARNING: Perl module Spreadsheet::ParseXLSX cannot be loaded.
    < WARNING: Microsoft Excel 2007 'XLSX' formatted files will not be processed.
    577,579d546
    < WARNING: Perl module Compress::Raw::Zlib cannot be loaded.
    < WARNING: Perl module Spreadsheet::ParseXLSX cannot be loaded.
    < WARNING: Microsoft Excel 2007 'XLSX' formatted files will not be processed.
    588,590d554
    < WARNING: Perl module Compress::Raw::Zlib cannot be loaded.
    < WARNING: Perl module Spreadsheet::ParseXLSX cannot be loaded.
    < WARNING: Microsoft Excel 2007 'XLSX' formatted files will not be processed.
    616,618d579
    < WARNING: Perl module Compress::Raw::Zlib cannot be loaded.
    < WARNING: Perl module Spreadsheet::ParseXLSX cannot be loaded.
    < WARNING: Microsoft Excel 2007 'XLSX' formatted files will not be processed.
    663,666c624,684
    < ************************************************************
    < ** DIFF IN THIS SECTION IS EXPECTED BECAUSE PERL PACKAGES **
    < ** FOR SUPPORTING XLSX ARE NOT INSTALLED **
    < ************************************************************
    ---
    > A B C
    > 1 1 1 1
    > 2 2 4 8
    > 3 3 9 27
    > 4 4 16 64
    > 5 5 25 125
    > 6 6 36 216
    > 7 7 49 343
    > X D E. F G Factor
    > 1 FirstRow 1 NA NA NA Red
    > 2 SecondRow 2 1 NA NA Green
    > 3 ThirdRow 3 2 1 NA Red
    > 4 FourthRow 4 3 2 1 Black
    > V1 V2 V3 V4 V5 V6 V7
    > 1 1 2001-01-01 01:01:00.00 0.2058182 NA A 2001-01-01 01:01:01.01
    > 2 2 2002-02-02 02:02:00.00 0.2910708 NA B 2002-02-02 02:02:02.02
    > 3 3 2003-03-03 03:03:00.00 0.3564875 -0.84147098 C 2003-03-03 03:03:03.03
    > 4 4 2004-04-04 04:04:00.00 0.4116363 0.70807342 2004-04-04 04:04:04.04
    > 5 5 2005-05-05 05:05:00.00 0.4602234 0.50136797 A 2005-05-05 05:05:05.05
    > 6 6 2006-06-06 06:06:00.00 NA 0.25136984 B 2006-06-06 06:06:06.06
    > 7 7 2007-07-07 07:07:00.00 0.5445436 0.06318679 B 2007-07-07 07:07:07.07
    > 8 8 2008-08-08 08:08:00.00 0.5821416 NA C 2008-08-08 08:08:08.08
    > 9 9 2009-09-09 09:09:00.00 0.6174545 0.00000000 A 2009-09-09 09:09:09.09
    > 10 10 2010-10-10 10:10:00.00 0.6508541 0.00000000 A 2010-10-10 10:10:10.10
    > V8
    > 1 36892.04
    > 2 37289.08
    > 3 37683.13
    > 4 38081.17
    > 5 38477.21
    > 6 38874.25
    > 7 39270.30
    > 8 39668.34
    > 9 40065.38
    > 10 40461.42
    > V1
    > 1 This line contains text that would need to be skipped to get to the data
    > 2
    > 3
    > 4
    > 5
    > 6
    > 7
    > V2 V3 V4 V5 V6 V7
    > 1
    > 2 This line too!
    > 3 D E F G Factor
    > 4 FirstRow 1 <NA> <NA> <NA> Red
    > 5 SecondRow 2 1 <NA> <NA> Green
    > 6 ThirdRow 3 2 1 <NA> Red
    > 7 FourthRow 4 3 2 1 Black
    > X D E. F G Factor
    > 1 FirstRow 1 NA NA NA Red
    > 2 SecondRow 2 1 NA NA Green
    > 3 ThirdRow 3 2 1 NA Red
    > 4 FourthRow 4 3 2 1 Black
    > X X.1 D E. F G Factor
    > 1 NA FirstRow 1 NA NA NA Red
    > 2 NA SecondRow 2 1 NA NA Green
    > 3 NA ThirdRow 3 2 1 NA Red
    > 4 NA FourthRow 4 3 2 1 Black
    671,673d688
    < WARNING: Perl module Compress::Raw::Zlib cannot be loaded.
    < WARNING: Perl module Spreadsheet::ParseXLSX cannot be loaded.
    < WARNING: Microsoft Excel 2007 'XLSX' formatted files will not be processed.
    692,695c707,712
    < ************************************************************
    < ** DIFF IN THIS SECTION IS EXPECTED BECAUSE PERL PACKAGES **
    < ** FOR SUPPORTING XLSX ARE NOT INSTALLED **
    < ************************************************************
    ---
    > X D E. F G Factor
    > 1 FirstRow 1 NA NA NA Red
    > 2 SecondRow 2 1 NA NA Green
    > 3 NA NA NA NA
    > 4 ThirdRow 3 2 1 NA Red
    > 5 FourthRow 4 3 2 1 Black
    716,718d732
    < WARNING: Perl module Compress::Raw::Zlib cannot be loaded.
    < WARNING: Perl module Spreadsheet::ParseXLSX cannot be loaded.
    < WARNING: Microsoft Excel 2007 'XLSX' formatted files will not be processed.
    740,743d753
    < ************************************************************
    < ** DIFF IN THIS SECTION IS EXPECTED BECAUSE PERL PACKAGES **
    < ** FOR SUPPORTING XLSX ARE NOT INSTALLED **
    < ************************************************************
    752,754d761
    < WARNING: Perl module Compress::Raw::Zlib cannot be loaded.
    < WARNING: Perl module Spreadsheet::ParseXLSX cannot be loaded.
    < WARNING: Microsoft Excel 2007 'XLSX' formatted files will not be processed.
    767,770d773
    < ************************************************************
    < ** DIFF IN THIS SECTION IS EXPECTED BECAUSE PERL PACKAGES **
    < ** FOR SUPPORTING XLSX ARE NOT INSTALLED **
    < ************************************************************
    781,783d783
    < WARNING: Perl module Compress::Raw::Zlib cannot be loaded.
    < WARNING: Perl module Spreadsheet::ParseXLSX cannot be loaded.
    < WARNING: Microsoft Excel 2007 'XLSX' formatted files will not be processed.
    809,811d808
    < WARNING: Perl module Compress::Raw::Zlib cannot be loaded.
    < WARNING: Perl module Spreadsheet::ParseXLSX cannot be loaded.
    < WARNING: Microsoft Excel 2007 'XLSX' formatted files will not be processed.
    837,839d833
    < WARNING: Perl module Compress::Raw::Zlib cannot be loaded.
    < WARNING: Perl module Spreadsheet::ParseXLSX cannot be loaded.
    < WARNING: Microsoft Excel 2007 'XLSX' formatted files will not be processed.
    865,867d858
    < WARNING: Perl module Compress::Raw::Zlib cannot be loaded.
    < WARNING: Perl module Spreadsheet::ParseXLSX cannot be loaded.
    < WARNING: Microsoft Excel 2007 'XLSX' formatted files will not be processed.
     Running 'test.reorder.factor.R' [1s]
     Comparing 'test.reorder.factor.Rout' to 'test.reorder.factor.Rout.save' ...17,22c17
    < gdata: Unable to load perl libaries needed by read.xls()
    < gdata: to support 'XLSX' (Excel 2007+) files.
    <
    < gdata: Run the function 'installXLSXsupport()'
    < gdata: to automatically download and install the perl
    < gdata: libaries needed to support Excel XLS and XLSX formats.
    ---
    > gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.
     Running 'test.write.fwf.eol.R' [1s]
     Running 'tests.write.fwf.R' [1s]
     Comparing 'tests.write.fwf.Rout' to 'tests.write.fwf.Rout.save' ...13,18c13
    < gdata: Unable to load perl libaries needed by read.xls()
    < gdata: to support 'XLSX' (Excel 2007+) files.
    <
    < gdata: Run the function 'installXLSXsupport()'
    < gdata: to automatically download and install the perl
    < gdata: libaries needed to support Excel XLS and XLSX formats.
    ---
    > gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.
    Running the tests in 'tests/runRUnitTests.R' failed.
    Complete output:
     > ### runRUnitTests.R
     > ###------------------------------------------------------------------------
     > ### What: Run RUnit tests (the core)- R code
     > ### $Id$
     > ### Time-stamp: <2008-12-30 12:52:51 ggorjan>
     > ###------------------------------------------------------------------------
     >
     > ## The setup seems to be quite messy, but it is so to enable use of this in
     > ## several ways as shown bellow.
     >
     > ## "R CMD check" way should be the most authoritative way to run the RUnit
     > ## tests for a developer. RUnit tests are issued during R CMD check of the
     > ## package due to example section of .runRUnitTests() function. If any test
     > ## fails (failure) or if there are any R errors during RUnit testing, R CMD
     > ## check fails. These are variable values specific for this way:
     > ## - .path DEVEL/PATH/PKG.Rcheck/PKG/unitTests
     > ## - .way function
     >
     > ## ".runRUnitTests()" way from within R after library(PKG) is handy for
     > ## package useRs, since it enables useRs to be sure that all tests pass for
     > ## their installation. This is just a convenient wrapper function to run
     > ## the RUnit testing suite. These are variable values specific for this
     > ## way:
     > ## - .path INSTALL/PATH/PKG/unitTests
     > ## - .way function
     >
     > ## "Shell" way is another possibility mainly for a developer in order to
     > ## skip possibly lengthy R CMD check and perform just RUnit testing with an
     > ## installed version of a pcakage. These are variable values specific for
     > ## this way:
     > ## - .path DEVEL/PATH/PKG/inst/unitTests
     > ## - .way shell
     > ##
     > ## Rscript runRUnitTests.R
     > ## R CMD BATCH runRUnitTests.R
     > ## make
     > ## make all
     >
     > PKG <- 'gdata'
     >
     > if(require("RUnit", quietly=TRUE))
     + {
     +
     + path <- normalizePath("unitTests")
     +
     + cat("\nRunning unit tests\n")
     + print(list(pkg=PKG, getwd=getwd(), pathToUnitTests=path))
     +
     + library(package=PKG, character.only=TRUE)
     +
     + testFileRegexp <- "^runit.+\\.[rR]$"
     +
     + ## Debugging echo
     + cat("\nRunning RUnit tests\n")
     + print(list(pkg=PKG,
     + getwd=getwd(),
     + pathToRUnitTests=path))
     +
     + ## Define tests
     + testSuite <- defineTestSuite(name=paste(PKG, "RUnit testing"),
     + dirs=path,
     + testFileRegexp=testFileRegexp
     + )
     +
     + ## Run
     + tests <- runTestSuite(testSuite)
     +
     + if(file.access(path, 02) != 0)
     + {
     + ## cannot write to path -> use writable one
     + tdir <- tempfile(paste(PKG, "RUnitTests", sep="_"))
     + dir.create(tdir)
     + pathReport <- file.path(tdir, "report")
     + }
     + else
     + {
     + pathReport <- file.path(path, "report")
     + }
     +
     + ## Print results:
     + printTextProtocol(tests)
     + printTextProtocol(tests,
     + fileName=paste(pathReport, ".txt", sep=""))
     +
     + ## Print HTML Version of results:
     + printHTMLProtocol(tests,
     + fileName=paste(pathReport, ".html", sep=""))
     +
     + cat("\nRUnit reports also written to\n",
     + pathReport, ".(txt|html)\n\n", sep="")
     +
     + ## Return stop() to cause R CMD check stop in case of
     + ## - failures i.e. FALSE to RUnit tests or
     + ## - errors i.e. R errors
     + tmp <- getErrors(tests)
     + if(tmp$nFail > 0 || tmp$nErr > 0)
     + {
     + stop(paste("\n\nRUnit testing failed:\n",
     + " - #test failures: ", tmp$nFail, "\n",
     + " - #R errors: ", tmp$nErr, "\n\n", sep="")
     + )
     + }
     + } else {
     +
     + cat("R package 'RUnit' cannot be loaded - no unit tests run\n",
     + "for package", PKG,"\n")
     +
     + }
    
     Running unit tests
     $pkg
     [1] "gdata"
    
     $getwd
     [1] "d:/Rcompile/CRANpkg/local/4.1/gdata.Rcheck/tests"
    
     $pathToUnitTests
     [1] "d:\\RCompile\\CRANpkg\\local\\4.1\\gdata.Rcheck\\tests\\unitTests"
    
     gdata: read.xls support for 'XLS' (Excel 97-2004) files ENABLED.
    
     gdata: Unable to load perl libaries needed by read.xls()
     gdata: to support 'XLSX' (Excel 2007+) files.
    
     gdata: Run the function 'installXLSXsupport()'
     gdata: to automatically download and install the perl
     gdata: libaries needed to support Excel XLS and XLSX formats.
    
     Attaching package: 'gdata'
    
     The following object is masked from 'package:stats':
    
     nobs
    
     The following object is masked from 'package:utils':
    
     object.size
    
     The following object is masked from 'package:base':
    
     startsWith
    
    
     Running RUnit tests
     $pkg
     [1] "gdata"
    
     $getwd
     [1] "d:/Rcompile/CRANpkg/local/4.1/gdata.Rcheck/tests"
    
     $pathToRUnitTests
     [1] "d:\\RCompile\\CRANpkg\\local\\4.1\\gdata.Rcheck\\tests\\unitTests"
    
    
    
     Executing test function test.bindData ... Error in bindData(x = 1:10, y = 1:10) : 'x' must be a data frame
     Error in bindData(x = matrix(1:10), y = matrix(1:10)) :
     'x' must be a data frame
     done successfully.
    
    
    
     Executing test function test.cbindX ... done successfully.
    
    
    
     Executing test function test.drop.levels ... done successfully.
    
    
    
     Executing test function test.getDay ... Error in getDay.default(x = num) :
     'getDay' can only be used on objects of a date/time class
     Error in getDay.default(x = cha) :
     'getDay' can only be used on objects of a date/time class
     Error in getDay.default(x = fac) :
     'getDay' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getHour ... Error in getHour.default(x = num) :
     'getHour' can only be used on objects of a date/time class
     Error in getHour.default(x = cha) :
     'getHour' can only be used on objects of a date/time class
     Error in getHour.default(x = fac) :
     'getHour' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getMin ... Error in getMin.default(x = num) :
     'getMin' can only be used on objects of a date/time class
     Error in getMin.default(x = cha) :
     'getMin' can only be used on objects of a date/time class
     Error in getMin.default(x = fac) :
     'getMin' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getMonth ... Error in getMonth.default(x = num) :
     'getMonth' can only be used on objects of a date/time class
     Error in getMonth.default(x = cha) :
     'getMonth' can only be used on objects of a date/time class
     Error in getMonth.default(x = fac) :
     'getMonth' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getSec ... Error in getSec.default(x = num) :
     'getSec' can only be used on objects of a date/time class
     Error in getSec.default(x = cha) :
     'getSec' can only be used on objects of a date/time class
     Error in getSec.default(x = fac) :
     'getSec' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.getYear ... Error in getYear.default(x = num) :
     'getYear' can only be used on objects of a date/time class
     Error in getYear.default(x = cha) :
     'getYear' can only be used on objects of a date/time class
     Error in getYear.default(x = fac) :
     'getYear' can only be used on objects of a date/time class
     done successfully.
    
    
    
     Executing test function test.cLevelsMap ... Error in c.listLevelsMap(x, sort = sort, recursive = TRUE) :
     can not combine integer "levelsMaps"
     done successfully.
    
    
    
     Executing test function test.checkLevelsMap ... Error in gdata:::.checkLevelsMap(x = "A", method = "raw") :
     '"A"' must be <08> a named list
     Error in gdata:::.checkLevelsMap(x = list("A"), method = "raw") :
     'list("A")' must be <08> a named list
     Error in gdata:::.checkLevelsMap(x = fMapInt, method = "class") :
     'fMapInt' must be a "levelsMap"
     Error in gdata:::.checkListLevelsMap(x = map, method = "class") :
     'map' must be a "listLevelsMap"
     Error in gdata:::.checkListLevelsMap(x = map1, method = "class") :
     'map1' must be also a list of "levelsMap"
     done successfully.
    
    
    
     Executing test function test.mapLevels ... Error in mapLevels.default(1:3) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     Error in mapLevels.default(1.5) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     Error in mapLevels.list(l, combine = TRUE) :
     can not combine integer "levelsMaps"
     Error in mapLevels.default(X[[i]], ...) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     Error in mapLevels.default(X[[i]], ...) :
     mapLevels can only be used on "factor" and "character" atomic 'x'
     done successfully.
    
    
    
     Executing test function test.mapLevels<- ... Error in `mapLevels<-.default`(1.1, value = 2) :
     'x' must be either: "integer", "character", "factor"
     Error in `mapLevels<-.default`(complex(1.1), value = 2) :
     'x' must be either: "integer", "character", "factor"
     Error in `mapLevels<-.default`(as.character(f), value = fMapInt) :
     can not apply integer "levelsMap" to "character"
     Error in is.levelsMap(x) : object 'chaMapCha' not found
     Error in `mapLevels<-.default`(as.character(f), value = fMapFuzz) :
     all components of 'value' must be of the same class
     Error in `mapLevels<-.default`(as.integer(f), value = fMapFuzz) :
     all components of 'value' must be of the same class
     done successfully.
    
    
    
     Executing test function test.uniqueLevelsMap ... done successfully.
    
    
    
     Executing test function test.nPairs ... Error in nPairs(x = x) : 'x' must be a data.frame or a matrix
     Error in nPairs(x = table(x)) : 'x' must be a data.frame or a matrix
     done successfully.
    
    
    
     Executing test function test.reorder.factor ... done successfully.
    
    
    
     Executing test function test.trim ... done successfully.
    
    
    
     Executing test function test.trimSum ... Error in trimSum(matrix(1:10)) : 'x' must be a vector - for now
     Error in trimSum(data.frame(1:10)) : 'x' must be a vector - for now
     Error in trimSum(list(1:10)) : 'x' must be a vector - for now
     Error in trimSum(letters) : 'x' must be numeric
     Error in trimSum(x = 1:10, n = 11) :
     'n' must be smaller than the length of x
     Error in trimSum(x = 1, n = 1) : 'n' must be smaller than the length of x
     done successfully.
    
    
    
     Executing test function test.NAToUnknown ... Error in NAToUnknown.default(xInt, unknown = unkC) :
     'unknown' must be a single value
     In addition: Warning message:
     new level is introduced: notAvail
     Error in NAToUnknown.default(xInt, unknown = unkL) :
     'unknown' must be a single value
     Error in NAToUnknown.default(xCha, unknown = chaUnk1) :
     'x' already has value "-"
     Error in NAToUnknown.factor(xFac, unknown = facLev) :
     'x' already has level "A"
     Timing stopped at: 0 0 0.02
     Error in checkIdentical(NAToUnknown(xPOSIXct, unknown = POSIXctUnk), xPOSIXctUnk) :
     FALSE
    
     In addition: Warning message:
     new level is introduced: NA
     done successfully.
    
    
    
     Executing test function test.isUnknown ... Error in .unknownList(x = x, unknown = unknown) :
     name(s) '' not in names of 'x'
     done successfully.
    
    
    
     Executing test function test.unknownToNA ... Timing stopped at: 0.01 0 0
     Error in checkIdentical(unknownToNA(xPOSIXctUnk, unknown = POSIXctUnk), :
     FALSE
    
     done successfully.
    
    
    
     Executing test function test.wideByFactor ... Error in wideByFactor(x = 1:10) : 'x' must be a data frame
     Error in wideByFactor(x = matrix(1:10)) : 'x' must be a data frame
     Error in wideByFactor(x = tmp, factor = c("f1", "f2")) :
     'factor' can be only of length one
     Error in wideByFactor(x = tmp, factor = "c1") :
     column defined in 'factor' must be a factor
     done successfully.
    
    
    
     Executing test function test.write.fwf ... Error in write.fwf(1:10) : 'x' must be a data.frame or matrix
     Error in write.fwf(list(1:10)) : 'x' must be a data.frame or matrix
     Error in write.fwf(data.frame(1:10, letters[1:10]), na = c("", " ")) :
     only single value can be defined for 'na'
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     a b c d
     123 3.141593 1e+08 1e+222
     int1
     1
     2
     3
     4
    
     4
     5
     6
     7
     8
     9
     int1
     1
     2
     3
     4
     1234
     4
     5
     6
     7
     8
     9
     row num1 num2
     1 1
     2 2 1.0
     3 3 1.5
     4 4 2.0
     5 5 2.5
     6 6 3.0
     7 7 3.5
     8 8 4.0
     9 9 4.5
     10 10 5.0
     11 5.5
     row num1 num2
     1 1
     2 2 1.0
     3 3 1.5
     4 4 2.0
     5 5 2.5
     6 6 3.0
     7 7 3.5
     8 8 4.0
     9 9 4.5
     10 10 5.0
     11 5.5
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     num1 num2
     1
     2 1.0
     3 1.5
     4 2.0
     5 2.5
     6 3.0
     7 3.5
     8 4.0
     9 4.5
     10 5.0
     5.5
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     "num1" "num2"
     " 1" " "
     " 2" "1.0"
     " 3" "1.5"
     " 4" "2.0"
     " 5" "2.5"
     " 6" "3.0"
     " 7" "3.5"
     " 8" "4.0"
     " 9" "4.5"
     "10" "5.0"
     " " "5.5"
     num1
     1
     2
     3
     4
     5
     6
     7
     8
     9
     10
    
     num1
     1
     2
     3
     4
     5
     6
     7
     8
     9
     10
    
     Error in write.fwf(testData[, c("num1", "num2")], width = 2) :
     'width' (2) was too small for columns: num2
     'width' should be at least (3)
     In addition: Warning message:
     In write.fwf(testData[, c("num1", "num2")], width = 2) : recycling 'width'
     Error in write.fwf(testData[, c("num1", "num2")], width = c(2, 1)) :
     'width' (1) was too small for columns: num2
     'width' should be at least (3)
    
     DONE.
    
     done successfully.
    
     RUNIT TEST PROTOCOL -- Sat Sep 05 10:15:19 2020
     ***********************************************
     Number of test functions: 23
     Number of errors: 0
     Number of failures: 2
    
    
     1 Test Suite :
     gdata RUnit testing - 23 test functions, 0 errors, 2 failures
     FAILURE in test.NAToUnknown: Error in checkIdentical(NAToUnknown(xPOSIXct, unknown = POSIXctUnk), xPOSIXctUnk) :
     FALSE
    
     FAILURE in test.unknownToNA: Error in checkIdentical(unknownToNA(xPOSIXctUnk, unknown = POSIXctUnk), :
     FALSE
    
    
    
    
     Details
     ***************************
     Test Suite: gdata RUnit testing
     Test function regexp: ^test.+
     Test file regexp: ^runit.+\.[rR]$
     Involved directory:
     d:\RCompile\CRANpkg\local\4.1\gdata.Rcheck\tests\unitTests
     ---------------------------
     Test file: d:\RCompile\CRANpkg\local\4.1\gdata.Rcheck\tests\unitTests/runit.bindData.R
     test.bindData: (11 checks) ... OK (0.01 seconds)
     ---------------------------
     Test file: d:\RCompile\CRANpkg\local\4.1\gdata.Rcheck\tests\unitTests/runit.cbindX.R
     test.cbindX: (5 checks) ... OK (0.01 seconds)
     ---------------------------
     Test file: d:\RCompile\CRANpkg\local\4.1\gdata.Rcheck\tests\unitTests/runit.drop.levels.R
     test.drop.levels: (3 checks) ... OK (0.04 seconds)
     ---------------------------
     Test file: d:\RCompile\CRANpkg\local\4.1\gdata.Rcheck\tests\unitTests/runit.getDateTimeParts.R
     test.getDay: (6 checks) ... OK (0 seconds)
     test.getHour: (3 checks) ... OK (0.01 seconds)
     test.getMin: (3 checks) ... OK (0 seconds)
     test.getMonth: (6 checks) ... OK (0 seconds)
     test.getSec: (3 checks) ... OK (0 seconds)
     test.getYear: (6 checks) ... OK (0 seconds)
     ---------------------------
     Test file: d:\RCompile\CRANpkg\local\4.1\gdata.Rcheck\tests\unitTests/runit.mapLevels.R
     test.cLevelsMap: (8 checks) ... OK (0.02 seconds)
     test.checkLevelsMap: (5 checks) ... OK (0.01 seconds)
     test.mapLevels: (26 checks) ... OK (0.02 seconds)
     test.mapLevels<-: (19 checks) ... OK (0.01 seconds)
     test.uniqueLevelsMap: (1 checks) ... OK (0 seconds)
     ---------------------------
     Test file: d:\RCompile\CRANpkg\local\4.1\gdata.Rcheck\tests\unitTests/runit.nPairs.R
     test.nPairs: (8 checks) ... OK (0.02 seconds)
     ---------------------------
     Test file: d:\RCompile\CRANpkg\local\4.1\gdata.Rcheck\tests\unitTests/runit.reorder.factor.R
     test.reorder.factor: (5 checks) ... OK (0.02 seconds)
     ---------------------------
     Test file: d:\RCompile\CRANpkg\local\4.1\gdata.Rcheck\tests\unitTests/runit.trim.R
     test.trim: (5 checks) ... OK (0 seconds)
     ---------------------------
     Test file: d:\RCompile\CRANpkg\local\4.1\gdata.Rcheck\tests\unitTests/runit.trimSum.R
     test.trimSum: (10 checks) ... OK (0 seconds)
     ---------------------------
     Test file: d:\RCompile\CRANpkg\local\4.1\gdata.Rcheck\tests\unitTests/runit.unknown.R
     test.NAToUnknown: FAILURE !! (check number 17)
     Error in checkIdentical(NAToUnknown(xPOSIXct, unknown = POSIXctUnk), xPOSIXctUnk) :
     FALSE
    
     test.isUnknown: (38 checks) ... OK (0.01 seconds)
     test.unknownToNA: FAILURE !! (check number 13)
     Error in checkIdentical(unknownToNA(xPOSIXctUnk, unknown = POSIXctUnk), :
     FALSE
    
     ---------------------------
     Test file: d:\RCompile\CRANpkg\local\4.1\gdata.Rcheck\tests\unitTests/runit.wideByFactor.R
     test.wideByFactor: (10 checks) ... OK (0.02 seconds)
     ---------------------------
     Test file: d:\RCompile\CRANpkg\local\4.1\gdata.Rcheck\tests\unitTests/runit.write.fwf.R
     test.write.fwf: (22 checks) ... OK (0.1 seconds)
    
     RUnit reports also written to
     d:\RCompile\CRANpkg\local\4.1\gdata.Rcheck\tests\unitTests/report.(txt|html)
    
     Error:
    
     RUnit testing failed:
     - #test failures: 2
     - #R errors: 0
    
     Execution halted
Flavor: r-devel-windows-ix86+x86_64