Running ‘AAAtest-all.R’ [2s/2s]
Running the tests in ‘tests/AAAtest-all.R’ failed.
Complete output:
  > if(require("testthat")) {
  +     pkg <- "glmmTMB"
  +     require(pkg, character.only=TRUE)
  +     print(sessionInfo())
  +     test_check(pkg)
  +     print(warnings()) # TODO? catch most of these by expect_warning(..)
  + } else {
  +     warnings("Package 'testthat' not available, cannot run unit tests for package",
  + 	     sQuote(pkg))
  + }
  Loading required package: testthat
  Loading required package: glmmTMB
  R Under development (unstable) (2017-09-08 r73224)
  Platform: x86_64-pc-linux-gnu (64-bit)
  Running under: Debian GNU/Linux buster/sid
  
  Matrix products: default
  BLAS: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libRblas.so
  LAPACK: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib/libRlapack.so
  
  locale:
   [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
   [3] LC_TIME=en_US.UTF-8        LC_COLLATE=C              
   [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
   [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
   [9] LC_ADDRESS=C               LC_TELEPHONE=C            
  [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
  
  attached base packages:
  [1] stats     graphics  grDevices utils     datasets  methods   base     
  
  other attached packages:
  [1] glmmTMB_0.1.1  testthat_1.0.2
  
  loaded via a namespace (and not attached):
   [1] minqa_1.2.4     MASS_7.3-47     compiler_3.5.0  Matrix_1.2-11  
   [5] magrittr_1.5    R6_2.2.2        TMB_1.7.11      Rcpp_0.12.12   
   [9] crayon_1.3.2    splines_3.5.0   nlme_3.1-131    grid_3.5.0     
  [13] nloptr_1.0.4    lme4_1.1-13     lattice_0.20-35
  Loading required package: lme4
  Loading required package: Matrix
  Error in nlminb(start = par, objective = fn, gradient = gr) : 
    gradient function must return a numeric vector of length 6
  Calls: test_check ... system.time -> with -> with.default -> eval -> eval -> nlminb
  In addition: Warning messages:
  1: In nlminb(start = par, objective = fn, gradient = gr) :
    NA/NaN function evaluation
  2: In he(par) : restarting interrupted promise evaluation
  Timing stopped at: 0.16 0.02 0.177
  testthat results ================================================================
  OK: 0 SKIPPED: 0 FAILED: 0
  Execution halted