Running ‘testthat.R’ [92s/140s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(merTools)
  Loading required package: arm
  Loading required package: MASS
  Loading required package: Matrix
  Loading required package: lme4
  
  arm (Version 1.9-3, built: 2016-11-21)
  
  Working directory is /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/merTools.Rcheck/tests
  
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:MASS':
  
      select
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > 
  > test_check("merTools")
  1. Error: Collapsing a dataframe results in single row (@test_merData.R#123) ---
  undefined columns selected
  1: merTools:::collapseFrame(grouseticks) at testthat/test_merData.R:123
  2: cfdata[, names(data)]
  3: `[.data.frame`(cfdata, , names(data))
  4: stop("undefined columns selected")
  
  2. Error: Returns a single row (@test_merData.R#328) ---------------------------
  undefined columns selected
  1: draw(glmer3Lev, type = "average") at testthat/test_merData.R:328
  2: draw.merMod(glmer3Lev, type = "average")
  3: averageObs(object, varList, ...)
  4: findFormFuns(merMod, origData = data)
  5: collapseFrame(modFrame)
  6: cfdata[, names(data)]
  7: `[.data.frame`(cfdata, , names(data))
  8: stop("undefined columns selected")
  
  3. Error: Warnings and errors are correct (@test_merData.R#340) ----------------
  undefined columns selected
  1: expect_warning(draw(glmer3LevSlope, type = "average", varList = mylist2)) at testthat/test_merData.R:340
  2: capture_warnings(object)
  3: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  4: draw(glmer3LevSlope, type = "average", varList = mylist2)
  5: draw.merMod(glmer3LevSlope, type = "average", varList = mylist2)
  6: averageObs(object, varList, ...)
  7: findFormFuns(merMod, origData = data)
  8: collapseFrame(origData)
  9: cfdata[, names(data)]
  10: `[.data.frame`(cfdata, , names(data))
  11: stop("undefined columns selected")
  
  4. Error: Subsets work (@test_merData.R#347) -----------------------------------
  undefined columns selected
  1: draw(glmer3LevSlope, type = "average", varList = mylist1) at testthat/test_merData.R:347
  2: draw.merMod(glmer3LevSlope, type = "average", varList = mylist1)
  3: averageObs(object, varList, ...)
  4: findFormFuns(merMod, origData = data)
  5: collapseFrame(origData)
  6: cfdata[, names(data)]
  7: `[.data.frame`(cfdata, , names(data))
  8: stop("undefined columns selected")
  
  testthat results ================================================================
  OK: 332 SKIPPED: 25 FAILED: 4
  1. Error: Collapsing a dataframe results in single row (@test_merData.R#123) 
  2. Error: Returns a single row (@test_merData.R#328) 
  3. Error: Warnings and errors are correct (@test_merData.R#340) 
  4. Error: Subsets work (@test_merData.R#347) 
  
  Error: testthat unit tests failed
  In addition: Warning message:
  In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  :
    Model failed to converge with max|grad| = 0.00603349 (tol = 0.001, component 1)
  Execution halted