* using log directory 'd:/Rcompile/CRANpkg/local/3.3/matrixTests.Rcheck' * using R version 3.3.3 (2017-03-06) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'matrixTests/DESCRIPTION' ... OK * this is package 'matrixTests' version '0.1.0' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'matrixTests' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... [1s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [22s] ERROR Running 'testthat.R' [21s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(matrixTests) > > test_check("matrixTests") -- 1. Error: x and y can have 0 rows and 0 columns (@test-parameters-special-cas Argument 'dim' must be an integer vector of length two. 1: expect_equal(nrow(row_oneway_equalvar(x = x, g = grp)), 0) at testthat/test-parameters-special-cases.R:48 2: quasi_label(enquo(object), label) 3: eval_bare(get_expr(quo), get_env(quo)) 4: nrow(row_oneway_equalvar(x = x, g = grp)) 5: row_oneway_equalvar(x = x, g = grp) 6: matrixStats::rowCounts(nPerGroup != 0) -- 2. Error: groups can all be NA (@test-parameters-special-cases.R#103) ------ Argument 'dim' must be an integer vector of length two. 1: expect_equal(suppressWarnings(row_oneway_equalvar(x = x, g = grp)$obs.tot), rep(0, nrow(x))) at testthat/test-parameters-special-cases.R:103 2: quasi_label(enquo(object), label) 3: eval_bare(get_expr(quo), get_env(quo)) 4: suppressWarnings(row_oneway_equalvar(x = x, g = grp)$obs.tot) 5: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning")) 6: row_oneway_equalvar(x = x, g = grp) 7: matrixStats::rowCounts(nPerGroup != 0) -- 3. Error: groups can all be NaN (@test-parameters-special-cases.R#113) ----- Argument 'dim' must be an integer vector of length two. 1: expect_equal(suppressWarnings(row_oneway_equalvar(x = x, g = grp)$obs.tot), rep(0, nrow(x))) at testthat/test-parameters-special-cases.R:113 2: quasi_label(enquo(object), label) 3: eval_bare(get_expr(quo), get_env(quo)) 4: suppressWarnings(row_oneway_equalvar(x = x, g = grp)$obs.tot) 5: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning")) 6: row_oneway_equalvar(x = x, g = grp) 7: matrixStats::rowCounts(nPerGroup != 0) -- 4. Error: all observations can be in the same group (@test-parameters-special 'x' must be an array of at least two dimensions 1: expect_equal(suppressWarnings(row_ievora(x = x, g = grp)$obs.0), rep(ncol(x), nrow(x))) at testthat/test-parameters-special-cases.R:127 2: quasi_label(enquo(object), label) 3: eval_bare(get_expr(quo), get_env(quo)) 4: suppressWarnings(row_ievora(x = x, g = grp)$obs.0) 5: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning")) 6: row_ievora(x = x, g = grp) 7: row_t_welch(x[, g == 1, drop = FALSE], x[, g == 0, drop = FALSE]) 8: rowSums((x - mxs)^2, na.rm = TRUE) 9: stop("'x' must be an array of at least two dimensions") == testthat results =========================================================== OK: 820 SKIPPED: 0 FAILED: 4 1. Error: x and y can have 0 rows and 0 columns (@test-parameters-special-cases.R#48) 2. Error: groups can all be NA (@test-parameters-special-cases.R#103) 3. Error: groups can all be NaN (@test-parameters-special-cases.R#113) 4. Error: all observations can be in the same group (@test-parameters-special-cases.R#127) Error: testthat unit tests failed Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR