Running ‘BFGSR.R’
  Comparing ‘BFGSR.Rout’ to ‘BFGSR.Rout.save’ ... OK
  Running ‘basicTest.R’
  Running ‘constraints.R’
  Comparing ‘constraints.Rout’ to ‘constraints.Rout.save’ ... OK
  Running ‘finalHessian.R’
  Comparing ‘finalHessian.Rout’ to ‘finalHessian.Rout.save’ ... OK
  Running ‘methods.R’
  Running ‘numericGradient.R’
  Comparing ‘numericGradient.Rout’ to ‘numericGradient.Rout.save’ ... OK
Running the tests in ‘tests/basicTest.R’ failed.
Complete output:
  > ### general optimization tests for the functions of various forms
  > ### test for:
  > ### 1. numeric gradient, Hessian
  > ### 2. analytic gradient, numeric Hessian
  > ### 3. analytic gradient, Hessian
  > ###
  > ### a) maxLik(, method="NR")
  > ### c) maxLik(, method="BFGS")
  > ### b) maxLik(, method="BHHH")
  > ###
  > ### i) maxNR()
  > ### ii) maxBFGS()
  > 
  > library(maxLik)
  Loading required package: miscTools
  
  Please cite the 'maxLik' package as:
  Henningsen, Arne and Toomet, Ott (2011). maxLik: A package for maximum likelihood estimation in R. Computational Statistics 26(3), 443-458. DOI 10.1007/s00180-010-0217-1.
  
  If you have questions, suggestions, or comments regarding the 'maxLik' package, please use a forum or 'tracker' at maxLik's R-Forge site:
  https://r-forge.r-project.org/projects/maxlik/
  > library(testthat)
  Error in library(testthat) : there is no package called 'testthat'
  Execution halted
Running the tests in ‘tests/methods.R’ failed.
Complete output:
  > ## Test methods.  Note: only test if methods work in terms of dim, length, etc,
  > ## not in terms of values here
  > 
  > library(maxLik)
  Loading required package: miscTools
  
  Please cite the 'maxLik' package as:
  Henningsen, Arne and Toomet, Ott (2011). maxLik: A package for maximum likelihood estimation in R. Computational Statistics 26(3), 443-458. DOI 10.1007/s00180-010-0217-1.
  
  If you have questions, suggestions, or comments regarding the 'maxLik' package, please use a forum or 'tracker' at maxLik's R-Forge site:
  https://r-forge.r-project.org/projects/maxlik/
  > require(testthat)
  Loading required package: testthat
  Warning message:
  In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
    there is no package called 'testthat'
  > require(sandwich)
  Loading required package: sandwich
  > set.seed(0)
  > 
  > ## Test standard methods for "lm"
  > x <- runif(20)
  > y <- x + rnorm(20)
  > m <- lm(y ~ x)
  > print(nObs(m))
  [1] 20
  > print(stdEr(m))
  (Intercept)           x 
    0.3578623   0.5687071 
  > 
  > ## Test maxControl methods:
  > set.seed(9)
  > x <- rnorm(20, sd=2)
  > ll1 <- function(par) dnorm(x, mean=par, sd=1, log=TRUE)
  > ll2 <- function(par) dnorm(x, mean=par[1], sd=par[2], log=TRUE)
  > for(method in c("NR", "BFGS", "BFGSR")) {
  +    cat("-- method", method, "--\n")
  +    m <- maxLik(ll2, start=c(0, 2), method=method, control=list(iterlim=1))
  +    expect_equal(maxValue(m), -41.35, tolerance=0.01)
  +    expect_true(is.vector(gradient(m)), info="'gradient' returns a vector")
  +    expect_equal(length(gradient(m)), 2, info="'gradient(m)' is of length 2")
  +    expect_true(is.matrix(estfun(m)), info="'estfun' returns a matrix")
  +    expect_equal(dim(estfun(m)), c(20,2), info="'estfun(m)' is 20x2 matrix")
  +    cat("MaxControl structure:\n")
  +    show(maxControl(m))
  + }
  -- method NR --
  Error in expect_equal(maxValue(m), -41.35, tolerance = 0.01) : 
    could not find function "expect_equal"
  Execution halted