Errors in running code in vignettes:
when running code in ‘sandwich-OOP.Rnw’
  ...

> options(prompt = "R> ", continue = "+   ")

> if (!require("AER")) tobit <- glm
Loading required package: AER
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called ‘AER’

> if (!require("MASS")) glm.nb <- glm
Loading required package: MASS

> if (!require("lmtest")) coeftest <- function(object, 
+     ...) summary(object)$coefficients
Loading required package: lmtest
Loading required package: zoo

Attaching package: ‘zoo’

The following objects are masked from ‘package:base’:

    as.Date, as.Date.numeric


> warn <- if (require("AER") & require("MASS") & require("lmtest")) "" else "{\\\\large\\\\bf\\\\color{Red}\n   Not all required packages were availab ..." ... [TRUNCATED] 
Loading required package: AER
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called ‘AER’

> par(mar = rep(0, 4))

> plot(0, 0, xlim = c(0, 85), ylim = c(0, 110), type = "n", 
+     axes = FALSE, xlab = "", ylab = "")

> lgrey <- grey(0.88)

> dgrey <- grey(0.75)

> rect(45, 90, 70, 110, lwd = 2, col = dgrey)

> rect(20, 40, 40, 60, col = lgrey)

> rect(30, 40, 40, 60, col = dgrey)

> rect(20, 40, 40, 60, lwd = 2)

> rect(5, 0, 20, 20, lwd = 2, col = lgrey)

> rect(22.5, 0, 37.5, 20, lwd = 2, col = lgrey)

> rect(40, 0, 55, 20, lwd = 2, col = lgrey)

> rect(40, 0, 55, 20, lwd = 2, col = lgrey)

> rect(60, 0, 80, 20, col = lgrey)

> rect(70, 0, 80, 20, col = dgrey)

> rect(60, 0, 80, 20, lwd = 2)

> text(57.5, 100, "fitted model object\n(class: foo)")

> text(25, 50, "estfun")

> text(35, 50, "foo")

> text(12.5, 10, "meatHC")

> text(30, 10, "meatHAC")

> text(47.5, 10, "meat")

> text(65, 10, "bread")

> text(75, 10, "foo")

> arrows(57.5, 89, 70, 21, lwd = 1.5, length = 0.15, 
+     angle = 20)

> arrows(57.5, 89, 30, 61, lwd = 1.5, length = 0.15, 
+     angle = 20)

> arrows(30, 39, 30, 21, lwd = 1.5, length = 0.15, angle = 20)

> arrows(30, 39, 12.5, 21, lwd = 1.5, length = 0.15, 
+     angle = 20)

> arrows(30, 39, 47.5, 21, lwd = 1.5, length = 0.15, 
+     angle = 20)

> suppressWarnings(RNGversion("3.5.0"))

> set.seed(123)

> x <- rnorm(250)

> y <- rnbinom(250, mu = exp(1 + x), size = 1)

> fm_pois <- glm(y ~ x + I(x^2), family = poisson)

> coeftest(fm_pois)

z test of coefficients:

             Estimate Std. Error z value Pr(>|z|)    
(Intercept)  1.063268   0.041357 25.7094  < 2e-16 ***
x            0.996072   0.053534 18.6062  < 2e-16 ***
I(x^2)      -0.049124   0.023146 -2.1223  0.03381 *  
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1


> coeftest(fm_pois, vcov = sandwich)

  When sourcing ‘sandwich-OOP.R’:
Error: object 'sandwich' not found
Execution halted

  ‘sandwich-CL.Rnw’... [8s/10s] NOTE
differences from ‘sandwich-CL.Rout.save’
38,39d37
< Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
<   there is no package called 'lme4'
78,79d75
< Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
<   there is no package called 'plm'
154,155c150,151
< (Intercept) 0.066939 0.028366 0.066939
< x           0.050540 0.028412 0.050540
---
> (Intercept) 0.066939 0.066939 0.066939
> x           0.050540 0.050540 0.050540
167,168c163,164
< (Intercept) 0.024357 0.028359
< x           0.028163 0.028583
---
> (Intercept) 0.024357 0.024357
> x           0.028163 0.028163
  ‘sandwich-OOP.Rnw’... failed
  ‘sandwich.Rnw’... [1s/1s] OK