Last updated on 2026-03-26 05:51:12 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 3.1-1 | 5.30 | 164.82 | 170.12 | OK | |
| r-devel-linux-x86_64-debian-gcc | 3.1-1 | 4.31 | 113.93 | 118.24 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 3.1-1 | 10.00 | 267.70 | 277.70 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 3.1-1 | 10.00 | 281.85 | 291.85 | OK | |
| r-devel-macos-arm64 | 3.1-1 | 1.00 | 48.00 | 49.00 | OK | |
| r-devel-windows-x86_64 | 3.1-1 | 6.00 | 232.00 | 238.00 | OK | |
| r-patched-linux-x86_64 | 3.1-1 | 6.44 | 148.20 | 154.64 | OK | |
| r-release-linux-x86_64 | 3.1-1 | 5.32 | 147.29 | 152.61 | OK | |
| r-release-macos-arm64 | 3.1-1 | OK | ||||
| r-release-macos-x86_64 | 3.1-1 | 4.00 | 239.00 | 243.00 | OK | |
| r-release-windows-x86_64 | 3.1-1 | 8.00 | 231.00 | 239.00 | OK | |
| r-oldrel-macos-arm64 | 3.1-1 | OK | ||||
| r-oldrel-macos-x86_64 | 3.1-1 | 4.00 | 258.00 | 262.00 | OK | |
| r-oldrel-windows-x86_64 | 3.1-1 | 11.00 | 261.00 | 272.00 | OK |
Version: 3.1-1
Check: examples
Result: ERROR
Running examples in ‘sandwich-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: lrvar
> ### Title: Long-Run Variance of the Mean
> ### Aliases: lrvar
> ### Keywords: regression ts
>
> ### ** Examples
>
> suppressWarnings(RNGversion("3.5.0"))
> set.seed(1)
> ## iid series (with variance of mean 1/n)
> ## and Andrews kernel HAC (with prewhitening)
> x <- rnorm(100)
> lrvar(x)
Error in ar.ols(x, aic = aic, order.max = order.max, na.action = na.action, :
non-conformable arguments
Error in meatHAC(x, order.by = order.by, prewhite = prewhite, weights = weights, :
VAR(1) prewhitening of estimating functions failed
Calls: lrvar -> kernHAC -> vcovHAC -> vcovHAC.default -> meatHAC
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 3.1-1
Check: running R code from vignettes
Result: ERROR
Errors in running code in vignettes:
when running code in ‘sandwich.Rnw’
...
> library("zoo")
Attaching package: ‘zoo’
The following objects are masked from ‘package:base’:
as.Date, as.Date.numeric
> library("sandwich")
> options(prompt = "R> ", continue = "+ ")
> warn <- FALSE
> if (require("strucchange")) {
+ data("RealInt", package = "strucchange")
+ strucchange_version <- gsub("-", "--", packageDescription("strucc ..." ... [TRUNCATED]
Loading required package: strucchange
> if (!require("lmtest")) {
+ warn <- TRUE
+ coeftest <- function(object, ...) summary(object, ...)$coefficients
+ lmtest_version <- "0.0- ..." ... [TRUNCATED]
Loading required package: lmtest
> if (!require("scatterplot3d")) {
+ warn <- TRUE
+ scatterplot3d <- function(object, ...) {
+ plot(object, main = "")
+ list( .... [TRUNCATED]
Loading required package: scatterplot3d
> warn <- if (warn) {
+ "{\\\\large\\\\bf\\\\color{Red}\n Not all required packages were available when rendering this version of the vignette!\ ..." ... [TRUNCATED]
> curve(kweights(x, kernel = "Quadratic", normalize = TRUE),
+ from = 0, to = 3.2, xlab = "x", ylab = "K(x)")
> curve(kweights(x, kernel = "Bartlett", normalize = TRUE),
+ from = 0, to = 3.2, col = 2, add = TRUE)
> curve(kweights(x, kernel = "Parzen", normalize = TRUE),
+ from = 0, to = 3.2, col = 3, add = TRUE)
> curve(kweights(x, kernel = "Tukey", normalize = TRUE),
+ from = 0, to = 3.2, col = 4, add = TRUE)
> lines(c(0, 0.5), c(1, 1), col = 6)
> lines(c(0.5, 0.5), c(1, 0), lty = 3, col = 6)
> lines(c(0.5, 3.2), c(0, 0), col = 6)
> curve(kweights(x, kernel = "Quadratic", normalize = TRUE),
+ from = 0, to = 3.2, col = 1, add = TRUE)
> text(0.5, 0.98, "Truncated", pos = 4)
> text(0.8, kweights(0.8, "Bartlett", normalize = TRUE),
+ "Bartlett", pos = 4)
> text(1.35, kweights(1.4, "Quadratic", normalize = TRUE),
+ "Quadratic Spectral", pos = 2)
> text(1.15, 0.29, "Parzen", pos = 4)
> arrows(1.17, 0.29, 1, kweights(1, "Parzen", normalize = TRUE),
+ length = 0.1)
> text(1.3, 0.2, "Tukey-Hanning", pos = 4)
> arrows(1.32, 0.2, 1.1, kweights(1.1, "Tukey", normalize = TRUE),
+ length = 0.1)
> data("PublicSchools")
> ps <- na.omit(PublicSchools)
> ps$Income <- ps$Income * 1e-04
> fm.ps <- lm(Expenditure ~ Income + I(Income^2), data = ps)
> coeftest(fm.ps, df = Inf, vcov = vcovHC(fm.ps, type = "HC0"))
z test of coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) 832.91 460.89 1.8072 0.07073 .
Income -1834.20 1243.04 -1.4756 0.14006
I(Income^2) 1587.04 829.99 1.9121 0.05586 .
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> coeftest(fm.ps, df = Inf, vcov = vcovHC(fm.ps, type = "HC4"))
z test of coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) 832.91 3008.01 0.2769 0.7819
Income -1834.20 8183.19 -0.2241 0.8226
I(Income^2) 1587.04 5488.93 0.2891 0.7725
> plot(Expenditure ~ Income, data = ps, xlab = "per capita income",
+ ylab = "per capita spending on public schools")
> inc <- seq(0.5, 1.2, by = 0.001)
> lines(inc, predict(fm.ps, data.frame(Income = inc)),
+ col = 4, lty = 2)
> fm.ps2 <- lm(Expenditure ~ Income, data = ps)
> abline(fm.ps2, col = 4)
> text(ps[2, 2], ps[2, 1], rownames(ps)[2], pos = 2)
> data("Investment")
> fm.inv <- lm(RealInv ~ RealGNP + RealInt, data = Investment)
> coeftest(fm.inv, df = Inf, vcov = NeweyWest(fm.inv,
+ lag = 4, prewhite = FALSE))
z test of coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -12.533601 18.958298 -0.6611 0.5085
RealGNP 0.169136 0.016751 10.0972 <2e-16 ***
RealInt -1.001438 3.342375 -0.2996 0.7645
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> coeftest(fm.inv, df = Inf, vcov = NeweyWest)
z test of coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -12.533601 24.374177 -0.5142 0.6071
RealGNP 0.169136 0.023586 7.1709 7.449e-13 ***
RealInt -1.001438 3.639935 -0.2751 0.7832
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> parzenHAC <- function(x, ...) kernHAC(x, kernel = "Parzen",
+ prewhite = 2, adjust = FALSE, bw = bwNeweyWest, ...)
> coeftest(fm.inv, df = Inf, vcov = parzenHAC)
z test of coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -12.533601 24.663944 -0.5082 0.6113
RealGNP 0.169136 0.020835 8.1181 4.737e-16 ***
RealInt -1.001438 3.947469 -0.2537 0.7997
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> s3d <- scatterplot3d(Investment[, c(5, 7, 6)], type = "b",
+ angle = 65, scale.y = 1, pch = 16)
> s3d$plane3d(fm.inv, lty.box = "solid", col = 4)
> ocus <- gefp(RealInt ~ 1, fit = lm, vcov = kernHAC)
Error in ar.ols(x, aic = aic, order.max = order.max, na.action = na.action, :
non-conformable arguments
When sourcing ‘sandwich.R’:
Error: VAR(1) prewhitening of estimating functions failed
Execution halted
‘sandwich-CL.Rnw’... [10s/13s] OK
‘sandwich-OOP.Rnw’... [2s/3s] OK
‘sandwich.Rnw’... failed
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 3.1-1
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘sandwich-CL.Rnw’ using Sweave
Loading required package: geepack
Loading required package: lattice
Loading required package: lme4
Loading required package: Matrix
Loading required package: lmtest
Loading required package: zoo
Attaching package: ‘zoo’
The following objects are masked from ‘package:base’:
as.Date, as.Date.numeric
Loading required package: multiwayvcov
Loading required package: pcse
Attaching package: ‘pcse’
The following object is masked from ‘package:sandwich’:
vcovPC
Loading required package: plm
Loading required package: pscl
Classes and Methods for R originally developed in the
Political Science Computational Laboratory
Department of Political Science
Stanford University (2002-2015),
by and under the direction of Simon Jackman.
hurdle and zeroinfl functions by Achim Zeileis.
--- finished re-building ‘sandwich-CL.Rnw’
--- re-building ‘sandwich-OOP.Rnw’ using Sweave
Loading required package: AER
Loading required package: car
Loading required package: carData
Loading required package: lmtest
Loading required package: zoo
Attaching package: ‘zoo’
The following objects are masked from ‘package:base’:
as.Date, as.Date.numeric
Loading required package: sandwich
Loading required package: survival
Loading required package: MASS
--- finished re-building ‘sandwich-OOP.Rnw’
--- re-building ‘sandwich.Rnw’ using Sweave
Attaching package: ‘zoo’
The following objects are masked from ‘package:base’:
as.Date, as.Date.numeric
Loading required package: strucchange
Loading required package: lmtest
Loading required package: scatterplot3d
Error in ar.ols(x, aic = aic, order.max = order.max, na.action = na.action, :
non-conformable arguments
Error: processing vignette 'sandwich.Rnw' failed with diagnostics:
chunk 16 (label = sc-ocus)
Error in meatHAC(x, order.by = order.by, prewhite = prewhite, weights = weights, :
VAR(1) prewhitening of estimating functions failed
--- failed re-building ‘sandwich.Rnw’
SUMMARY: processing the following file failed:
‘sandwich.Rnw’
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc