CRAN Package Check Results for Maintainer ‘Achim Zeileis <Achim.Zeileis at R-project.org>’

Last updated on 2024-06-14 01:51:59 CEST.

Package ERROR WARN NOTE OK
AER 1 12
betareg 2 11
colorspace 2 11
ctv 13
dynlm 1 12
exams 1 12
exams2learnr 13
Formula 13
fortunes 13
fxregime 1 12
glmx 2 11
glogis 1 12
ineq 13
ivreg 1 12
lagsarlmtree 8 5
lmtest 2 11
pixmap 13
psychotools 1 12
psychotree 13
pwt 8 5
pwt10 13
pwt8 13
pwt9 13
sandwich 1 10 2
stablelearner 2 11
strucchange 13
tth 13
zoo 1 12

Package AER

Current CRAN status: ERROR: 1, OK: 12

Version: 1.2-12
Check: package dependencies
Result: ERROR Package required but not available: ‘car’ Packages suggested but not available for checking: 'dynlm', 'effects', 'forecast', 'mlogit', 'rugarch', 'sampleSelection', 'systemfit' See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual. Flavor: r-devel-linux-x86_64-debian-gcc

Package betareg

Current CRAN status: NOTE: 2, OK: 11

Version: 3.1-4
Check: package dependencies
Result: NOTE Package suggested but not available for checking: ‘car’ Flavors: r-devel-linux-x86_64-debian-gcc, r-oldrel-macos-x86_64

Version: 3.1-4
Check: re-building of vignette outputs
Result: NOTE Note: skipping ‘betareg.Rnw’ due to unavailable dependencies: 'car' Flavors: r-devel-linux-x86_64-debian-gcc, r-oldrel-macos-x86_64

Package colorspace

Current CRAN status: ERROR: 2, OK: 11

Version: 2.1-0
Check: package dependencies
Result: NOTE Packages suggested but not available for checking: 'ggplot2', 'dplyr', 'rcartocolor', 'viridis' Flavor: r-devel-linux-x86_64-debian-gcc

Version: 2.1-0
Check: examples
Result: ERROR Running examples in ‘colorspace-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: scale_colour_binned_diverging > ### Title: HCL-Based Binned Diverging Color Scales for ggplot2 > ### Aliases: scale_colour_binned_diverging scale_color_binned_diverging > ### scale_fill_binned_diverging > > ### ** Examples > > # adapted from stackoverflow: https://stackoverflow.com/a/20127706/4975218 > > library("ggplot2") Error in library("ggplot2") : there is no package called ‘ggplot2’ Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 2.1-0
Check: re-building of vignette outputs
Result: NOTE Note: skipping ‘colorspace.Rmd’ due to unavailable dependencies: 'ggplot2' Flavor: r-devel-linux-x86_64-debian-gcc

Version: 2.1-0
Check: examples
Result: ERROR Running examples in ‘colorspace-Ex.R’ failed The error most likely occurred in: > ### Name: scale_colour_binned_diverging > ### Title: HCL-Based Binned Diverging Color Scales for ggplot2 > ### Aliases: scale_colour_binned_diverging scale_color_binned_diverging > ### scale_fill_binned_diverging > > ### ** Examples > > # adapted from stackoverflow: https://stackoverflow.com/a/20127706/4975218 > > library("ggplot2") > > # generate dataset and base plot > set.seed(100) > df <- data.frame(country = LETTERS, V = runif(26, -40, 40)) > df$country = factor(LETTERS, LETTERS[order(df$V)]) # reorder factors > gg <- ggplot(df, aes(x = country, y = V, fill = V)) + + geom_bar(stat = "identity") + + labs(y = "Under/over valuation in %", x = "Country") + + coord_flip() + theme_minimal() > > # plot with default diverging scale > gg + scale_fill_binned_diverging(n.breaks = 6) Error in loadNamespace(x) : there is no package called ‘farver’ Calls: scale_fill_binned_diverging ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted Flavor: r-release-macos-arm64

Package ctv

Current CRAN status: OK: 13

Package dynlm

Current CRAN status: ERROR: 1, OK: 12

Version: 0.3-6
Check: package dependencies
Result: ERROR Package required but not available: ‘car’ See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual. Flavor: r-devel-linux-x86_64-debian-gcc

Package exams

Current CRAN status: NOTE: 1, OK: 12

Version: 2.4-0
Check: package dependencies
Result: NOTE Package suggested but not available for checking: ‘magick’ Flavor: r-devel-linux-x86_64-debian-gcc

Package exams2learnr

Current CRAN status: OK: 13

Package Formula

Current CRAN status: OK: 13

Package fortunes

Current CRAN status: OK: 13

Package fxregime

Current CRAN status: ERROR: 1, OK: 12

Version: 1.0-4
Flags: --no-vignettes
Check: package dependencies
Result: ERROR Package required but not available: ‘car’ See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual. Flavor: r-devel-linux-x86_64-debian-gcc

Package glmx

Current CRAN status: NOTE: 2, OK: 11

Version: 0.2-0
Check: package dependencies
Result: NOTE Package suggested but not available for checking: ‘AER’ Flavors: r-devel-linux-x86_64-debian-gcc, r-oldrel-macos-x86_64

Package glogis

Current CRAN status: NOTE: 1, OK: 12

Version: 1.0-2
Check: package dependencies
Result: NOTE Package suggested but not available for checking: ‘fxregime’ Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.0-2
Check: dependencies in R code
Result: NOTE Unavailable namespace imported from by a ':::' call: ‘fxregime’ See the note in ?`:::` about the use of this operator. Flavor: r-devel-linux-x86_64-debian-gcc

Package ineq

Current CRAN status: OK: 13

Package ivreg

Current CRAN status: ERROR: 1, OK: 12

Version: 0.6-3
Check: package dependencies
Result: ERROR Package required but not available: ‘car’ Packages suggested but not available for checking: 'AER', 'effects', 'testthat', 'gt', 'ggplot2' See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual. Flavor: r-devel-linux-x86_64-debian-gcc

Package lagsarlmtree

Current CRAN status: NOTE: 8, OK: 5

Version: 1.0-1
Check: installed package size
Result: NOTE installed size is 8.4Mb sub-directories of 1Mb or more: data 8.3Mb Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64

Version: 1.0-1
Check: Rd cross-references
Result: NOTE Undeclared package ‘spdep’ in Rd xrefs Flavor: r-devel-linux-x86_64-fedora-clang

Package lmtest

Current CRAN status: NOTE: 2, OK: 11

Version: 0.9-40
Check: package dependencies
Result: NOTE Packages suggested but not available for checking: 'car', 'dynlm', 'AER' Flavors: r-devel-linux-x86_64-debian-gcc, r-oldrel-macos-x86_64

Version: 0.9-40
Check: Rd cross-references
Result: NOTE Package unavailable to check Rd xrefs: ‘car’ Flavor: r-oldrel-macos-x86_64

Package pixmap

Current CRAN status: OK: 13

Package psychotools

Current CRAN status: NOTE: 1, OK: 12

Version: 0.7-4
Check: package dependencies
Result: NOTE Package suggested but not available for checking: ‘likert’ Flavor: r-devel-linux-x86_64-debian-gcc

Package psychotree

Current CRAN status: OK: 13

Package pwt

Current CRAN status: NOTE: 8, OK: 5

Version: 7.1-1
Check: installed package size
Result: NOTE installed size is 7.3Mb sub-directories of 1Mb or more: data 7.2Mb Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64

Package pwt10

Current CRAN status: OK: 13

Package pwt8

Current CRAN status: OK: 13

Package pwt9

Current CRAN status: OK: 13

Package sandwich

Current CRAN status: WARN: 1, NOTE: 10, OK: 2

Version: 3.1-0
Check: running R code from vignettes
Result: NOTE ‘sandwich-CL.Rnw’... [16s/19s] NOTE differences from ‘sandwich-CL.Rout.save’ 82c82 < Classes and Methods for R originally developed in the --- > Classes and Methods for R developed in the 85,87c85,87 < Stanford University (2002-2015), < by and under the direction of Simon Jackman. < hurdle and zeroinfl functions by Achim Zeileis. --- > Stanford University > Simon Jackman > hurdle and zeroinfl functions by Achim Zeileis ‘sandwich-OOP.Rnw’... [3s/4s] OK ‘sandwich.Rnw’... [1s/2s] OK Flavor: r-devel-linux-x86_64-debian-clang

Version: 3.1-0
Check: package dependencies
Result: NOTE Packages suggested but not available for checking: 'AER', 'car', 'geepack', 'lme4' Flavor: r-devel-linux-x86_64-debian-gcc

Version: 3.1-0
Check: running R code from vignettes
Result: WARN 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/11s] NOTE differences from ‘sandwich-CL.Rout.save’ 26,27d25 < Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : < there is no package called 'geepack' 40,41d37 < Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : < there is no package called 'lme4' 86c82 < Classes and Methods for R originally developed in the --- > Classes and Methods for R developed in the 89,91c85,87 < Stanford University (2002-2015), < by and under the direction of Simon Jackman. < hurdle and zeroinfl functions by Achim Zeileis. --- > Stanford University > Simon Jackman > hurdle and zeroinfl functions by Achim Zeileis 154,155c150,151 < (Intercept) 0.066939 0.066939 0.028359 < x 0.050540 0.050540 0.028583 --- > (Intercept) 0.066939 0.066939 0.066939 > x 0.050540 0.050540 0.050540 ‘sandwich-OOP.Rnw’... failed ‘sandwich.Rnw’... [1s/2s] OK Flavor: r-devel-linux-x86_64-debian-gcc

Version: 3.1-0
Check: re-building of vignette outputs
Result: NOTE Note: skipping ‘sandwich-CL.Rnw’ due to unavailable dependencies: 'geepack' Note: skipping ‘sandwich-OOP.Rnw’ due to unavailable dependencies: 'AER' Flavor: r-devel-linux-x86_64-debian-gcc

Version: 3.1-0
Check: running R code from vignettes
Result: NOTE ‘sandwich-CL.Rnw’... [20s/27s] NOTE differences from ‘sandwich-CL.Rout.save’ 82c82 < Classes and Methods for R originally developed in the --- > Classes and Methods for R developed in the 85,87c85,87 < Stanford University (2002-2015), < by and under the direction of Simon Jackman. < hurdle and zeroinfl functions by Achim Zeileis. --- > Stanford University > Simon Jackman > hurdle and zeroinfl functions by Achim Zeileis ‘sandwich-OOP.Rnw’... OK ‘sandwich.Rnw’... OK Flavor: r-devel-linux-x86_64-fedora-clang

Version: 3.1-0
Check: running R code from vignettes
Result: NOTE ‘sandwich-CL.Rnw’... [18s/22s] NOTE differences from ‘sandwich-CL.Rout.save’ 82c82 < Classes and Methods for R originally developed in the --- > Classes and Methods for R developed in the 85,87c85,87 < Stanford University (2002-2015), < by and under the direction of Simon Jackman. < hurdle and zeroinfl functions by Achim Zeileis. --- > Stanford University > Simon Jackman > hurdle and zeroinfl functions by Achim Zeileis ‘sandwich-OOP.Rnw’... OK ‘sandwich.Rnw’... OK Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 3.1-0
Check: running R code from vignettes
Result: NOTE 'sandwich-CL.Rnw'... [11s] NOTE differences from 'sandwich-CL.Rout.save' 82c82 < Classes and Methods for R originally developed in the --- > Classes and Methods for R developed in the 85,87c85,87 < Stanford University (2002-2015), < by and under the direction of Simon Jackman. < hurdle and zeroinfl functions by Achim Zeileis. --- > Stanford University > Simon Jackman > hurdle and zeroinfl functions by Achim Zeileis 'sandwich-OOP.Rnw'... [2s] OK 'sandwich.Rnw'... [1s] OK Flavors: r-devel-windows-x86_64, r-release-windows-x86_64

Version: 3.1-0
Check: running R code from vignettes
Result: NOTE ‘sandwich-CL.Rnw’... [14s/19s] NOTE differences from ‘sandwich-CL.Rout.save’ 82c82 < Classes and Methods for R originally developed in the --- > Classes and Methods for R developed in the 85,87c85,87 < Stanford University (2002-2015), < by and under the direction of Simon Jackman. < hurdle and zeroinfl functions by Achim Zeileis. --- > Stanford University > Simon Jackman > hurdle and zeroinfl functions by Achim Zeileis ‘sandwich-OOP.Rnw’... [3s/3s] OK ‘sandwich.Rnw’... [1s/2s] OK Flavor: r-patched-linux-x86_64

Version: 3.1-0
Check: running R code from vignettes
Result: NOTE ‘sandwich-CL.Rnw’... [15s/21s] NOTE differences from ‘sandwich-CL.Rout.save’ 82c82 < Classes and Methods for R originally developed in the --- > Classes and Methods for R developed in the 85,87c85,87 < Stanford University (2002-2015), < by and under the direction of Simon Jackman. < hurdle and zeroinfl functions by Achim Zeileis. --- > Stanford University > Simon Jackman > hurdle and zeroinfl functions by Achim Zeileis ‘sandwich-OOP.Rnw’... [3s/3s] OK ‘sandwich.Rnw’... [1s/2s] OK Flavor: r-release-linux-x86_64

Version: 3.1-0
Check: running R code from vignettes
Result: NOTE ‘sandwich-CL.Rnw’... [5s/6s] NOTE differences from ‘sandwich-CL.Rout.save’ 82c82 < Classes and Methods for R originally developed in the --- > Classes and Methods for R developed in the 85,87c85,87 < Stanford University (2002-2015), < by and under the direction of Simon Jackman. < hurdle and zeroinfl functions by Achim Zeileis. --- > Stanford University > Simon Jackman > hurdle and zeroinfl functions by Achim Zeileis ‘sandwich-OOP.Rnw’... [1s/1s] OK ‘sandwich.Rnw’... [1s/1s] OK Flavor: r-release-macos-arm64

Version: 3.1-0
Check: running R code from vignettes
Result: NOTE ‘sandwich-CL.Rnw’... [10s/12s] NOTE differences from ‘sandwich-CL.Rout.save’ 82c82 < Classes and Methods for R originally developed in the --- > Classes and Methods for R developed in the 85,87c85,87 < Stanford University (2002-2015), < by and under the direction of Simon Jackman. < hurdle and zeroinfl functions by Achim Zeileis. --- > Stanford University > Simon Jackman > hurdle and zeroinfl functions by Achim Zeileis ‘sandwich-OOP.Rnw’... [2s/2s] OK ‘sandwich.Rnw’... [1s/1s] OK Flavor: r-release-macos-x86_64

Version: 3.1-0
Check: running R code from vignettes
Result: NOTE 'sandwich-CL.Rnw'... [13s] NOTE differences from 'sandwich-CL.Rout.save' 82c82 < Classes and Methods for R originally developed in the --- > Classes and Methods for R developed in the 85,87c85,87 < Stanford University (2002-2015), < by and under the direction of Simon Jackman. < hurdle and zeroinfl functions by Achim Zeileis. --- > Stanford University > Simon Jackman > hurdle and zeroinfl functions by Achim Zeileis 'sandwich-OOP.Rnw'... [3s] OK 'sandwich.Rnw'... [1s] OK Flavor: r-oldrel-windows-x86_64

Package stablelearner

Current CRAN status: NOTE: 2, OK: 11

Version: 0.1-5
Check: data for non-ASCII characters
Result: NOTE Note: found 123 marked UTF-8 strings Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Package strucchange

Current CRAN status: NOTE: 13

Version: 1.5-3
Check: R code for possible problems
Result: NOTE efpFunctional: multiple local function definitions for ‘plotProcess’ with different formal arguments mefp.efp: multiple local function definitions for ‘computeEmpProc’ with different formal arguments Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64

Version: 1.5-3
Check: package dependencies
Result: NOTE Packages suggested but not available for checking: 'car', 'dynlm' Flavor: r-devel-linux-x86_64-debian-gcc

Package tth

Current CRAN status: OK: 13

Additional issues

C23 C23

Package zoo

Current CRAN status: ERROR: 1, OK: 12

Version: 1.8-12
Check: package dependencies
Result: NOTE Packages suggested but not available for checking: 'AER', 'ggplot2' Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.8-12
Check: tests
Result: ERROR Running ‘as.Date.R’ [1s/1s] Comparing ‘as.Date.Rout’ to ‘as.Date.Rout.save’ ... OK Running ‘bugfixes.R’ [0s/0s] Comparing ‘bugfixes.Rout’ to ‘bugfixes.Rout.save’ ... OK Running ‘na.fill.R’ [0s/0s] Comparing ‘na.fill.Rout’ to ‘na.fill.Rout.save’ ... OK Running ‘na.locf.R’ [0s/0s] Comparing ‘na.locf.Rout’ to ‘na.locf.Rout.save’ ... OK Running ‘vignette-zoo-quickref.R’ [1s/1s] Comparing ‘vignette-zoo-quickref.Rout’ to ‘vignette-zoo-quickref.Rout.save’ ... OK Running ‘vignette-zoo.R’ [1s/1s] Running the tests in ‘tests/vignette-zoo.R’ failed. Complete output: > ################################################### > ### chunk number 1: preliminaries > ################################################### > library("zoo") Attaching package: 'zoo' The following objects are masked from 'package:base': as.Date, as.Date.numeric > library("tseries") > library("strucchange") Loading required package: sandwich > library("timeDate") > online <- FALSE ## if set to FALSE the local copy of MSFT.rda > ## is used instead of get.hist.quote() > options(prompt = "R> ") R> Sys.setenv(TZ = "GMT") R> suppressWarnings(RNGversion("3.5.0")) R> R> R> ################################################### R> ### chunk number 2: zoo-prelim R> ################################################### R> library("zoo") R> set.seed(1071) R> R> R> ################################################### R> ### chunk number 3: zoo-vectors1 R> ################################################### R> z1.index <- ISOdatetime(2004, rep(1:2,5), sample(28,10), 0, 0, 0) R> z1.data <- rnorm(10) R> z1 <- zoo(z1.data, z1.index) R> R> R> ################################################### R> ### chunk number 4: zoo-vectors2 R> ################################################### R> z2.index <- as.POSIXct(paste(2004, rep(1:2, 5), sample(1:28, 10), sep = "-")) R> z2.data <- sin(2*1:10/pi) R> z2 <- zoo(z2.data, z2.index) R> R> R> ################################################### R> ### chunk number 5: zoo-matrix R> ################################################### R> Z.index <- as.Date(sample(12450:12500, 10)) R> Z.data <- matrix(rnorm(30), ncol = 3) R> colnames(Z.data) <- c("Aa", "Bb", "Cc") R> Z <- zoo(Z.data, Z.index) R> R> R> ################################################### R> ### chunk number 6: print1 R> ################################################### R> z1 2004-01-05 2004-01-14 2004-01-19 2004-01-25 2004-01-27 2004-02-07 0.74675994 0.02107873 -0.29823529 0.68625772 1.94078850 1.27384445 2004-02-12 2004-02-16 2004-02-20 2004-02-24 0.22170438 -2.07607585 -1.78439244 -0.19533304 R> z1[3:7] 2004-01-19 2004-01-25 2004-01-27 2004-02-07 2004-02-12 -0.2982353 0.6862577 1.9407885 1.2738445 0.2217044 R> R> R> ################################################### R> ### chunk number 7: print2 R> ################################################### R> Z Aa Bb Cc 2004-02-02 1.2554339 0.6815732 -0.63292049 2004-02-08 -1.4945833 1.3234122 -1.49442269 2004-02-09 -1.8746225 -0.8732929 0.62733971 2004-02-21 -0.1453861 0.4523490 -0.14597401 2004-02-22 0.2254242 0.5383894 0.23136133 2004-02-29 1.2069552 0.3181422 -0.01129202 2004-03-05 -1.2086102 1.4237978 -0.81614483 2004-03-10 -0.1103956 1.3477425 0.95522468 2004-03-14 0.8420238 -2.7384202 0.23150695 2004-03-20 -0.1901910 0.1230887 -1.51862157 R> Z[1:3, 2:3] Bb Cc 2004-02-02 0.6815732 -0.6329205 2004-02-08 1.3234122 -1.4944227 2004-02-09 -0.8732929 0.6273397 R> R> R> ################################################### R> ### chunk number 8: subset R> ################################################### R> z1[ISOdatetime(2004, 1, c(14, 25), 0, 0, 0)] 2004-01-14 2004-01-25 0.02107873 0.68625772 R> R> R> ################################################### R> ### chunk number 9: summary R> ################################################### R> summary(z1) Index z1 Min. :2004-01-05 00:00:00 Min. :-2.07608 1st Qu.:2004-01-20 12:00:00 1st Qu.:-0.27251 Median :2004-02-01 12:00:00 Median : 0.12139 Mean :2004-02-01 09:36:00 Mean : 0.05364 3rd Qu.:2004-02-15 00:00:00 3rd Qu.: 0.73163 Max. :2004-02-24 00:00:00 Max. : 1.94079 R> summary(Z) Index Aa Bb Cc Min. :2004-02-02 Min. :-1.8746 Min. :-2.7384 Min. :-1.51862 1st Qu.:2004-02-12 1st Qu.:-0.9540 1st Qu.: 0.1719 1st Qu.:-0.77034 Median :2004-02-25 Median :-0.1279 Median : 0.4954 Median :-0.07863 Mean :2004-02-25 Mean :-0.1494 Mean : 0.2597 Mean :-0.25739 3rd Qu.:2004-03-08 3rd Qu.: 0.6879 3rd Qu.: 1.1630 3rd Qu.: 0.23147 Max. :2004-03-20 Max. : 1.2554 Max. : 1.4238 Max. : 0.95522 R> R> R> ################################################### R> ### chunk number 10: zooreg1 R> ################################################### R> zr1 <- zooreg(sin(1:9), start = 2000, frequency = 4) R> zr2 <- zoo(sin(1:9), seq(2000, 2002, by = 1/4), 4) R> zr1 2000 Q1 2000 Q2 2000 Q3 2000 Q4 2001 Q1 2001 Q2 2001 Q3 0.8414710 0.9092974 0.1411200 -0.7568025 -0.9589243 -0.2794155 0.6569866 2001 Q4 2002 Q1 0.9893582 0.4121185 R> zr2 2000 Q1 2000 Q2 2000 Q3 2000 Q4 2001 Q1 2001 Q2 2001 Q3 0.8414710 0.9092974 0.1411200 -0.7568025 -0.9589243 -0.2794155 0.6569866 2001 Q4 2002 Q1 0.9893582 0.4121185 R> R> R> ################################################### R> ### chunk number 11: zooreg2 R> ################################################### R> zr1 <- zr1[-c(3, 5)] R> zr1 2000 Q1 2000 Q2 2000 Q4 2001 Q2 2001 Q3 2001 Q4 2002 Q1 0.8414710 0.9092974 -0.7568025 -0.2794155 0.6569866 0.9893582 0.4121185 R> class(zr1) [1] "zooreg" "zoo" R> frequency(zr1) [1] 4 R> R> R> ################################################### R> ### chunk number 12: zooreg1b R> ################################################### R> zooreg(1:5, start = as.Date("2005-01-01")) 2005-01-01 2005-01-02 2005-01-03 2005-01-04 2005-01-05 1 2 3 4 5 R> R> R> ################################################### R> ### chunk number 13: zooreg3 R> ################################################### R> is.regular(zr1) [1] TRUE R> is.regular(zr1, strict = TRUE) [1] FALSE R> R> R> ################################################### R> ### chunk number 14: zooreg4 R> ################################################### R> zr1 <- as.zoo(zr1) R> zr1 2000 Q1 2000 Q2 2000 Q4 2001 Q2 2001 Q3 2001 Q4 2002 Q1 0.8414710 0.9092974 -0.7568025 -0.2794155 0.6569866 0.9893582 0.4121185 R> class(zr1) [1] "zoo" R> is.regular(zr1) [1] TRUE R> frequency(zr1) [1] 4 R> R> R> ################################################### R> ### chunk number 15: zooreg5 R> ################################################### R> as.ts(zr1) Qtr1 Qtr2 Qtr3 Qtr4 2000 0.8414710 0.9092974 NA -0.7568025 2001 NA -0.2794155 0.6569866 0.9893582 2002 0.4121185 R> identical(zr2, as.zoo(as.ts(zr2))) [1] TRUE R> R> R> ################################################### R> ### chunk number 16: plot1 eval=FALSE R> ################################################### R> ## plot(Z) R> R> R> ################################################### R> ### chunk number 17: plot2 eval=FALSE R> ################################################### R> ## plot(Z, plot.type = "single", col = 2:4) R> R> R> ################################################### R> ### chunk number 18: plot2-repeat R> ################################################### R> plot(Z, plot.type = "single", col = 2:4) R> R> R> ################################################### R> ### chunk number 19: plot1-repeat R> ################################################### R> plot(Z) R> R> R> ################################################### R> ### chunk number 20: plot3 R> ################################################### R> plot(Z, type = "b", lty = 1:3, pch = list(Aa = 1:5, Bb = 2, Cc = 4), col = list(Bb = 2, 4)) R> R> R> ################################################### R> ### chunk number 21: plot3-repeat eval=FALSE R> ################################################### R> ## plot(Z, type = "b", lty = 1:3, pch = list(Aa = 1:5, Bb = 2, Cc = 4), col = list(Bb = 2, 4)) R> R> R> ################################################### R> ### chunk number 22: rbind R> ################################################### R> rbind(z1[5:10], z1[2:3]) 2004-01-14 2004-01-19 2004-01-27 2004-02-07 2004-02-12 2004-02-16 0.02107873 -0.29823529 1.94078850 1.27384445 0.22170438 -2.07607585 2004-02-20 2004-02-24 -1.78439244 -0.19533304 R> R> R> ################################################### R> ### chunk number 23: cbind R> ################################################### R> cbind(z1, z2) z1 z2 2004-01-03 NA 0.94306673 2004-01-05 0.74675994 -0.04149429 2004-01-14 0.02107873 NA 2004-01-17 NA 0.59448077 2004-01-19 -0.29823529 -0.52575918 2004-01-24 NA -0.96739776 2004-01-25 0.68625772 NA 2004-01-27 1.94078850 NA 2004-02-07 1.27384445 NA 2004-02-08 NA 0.95605566 2004-02-12 0.22170438 -0.62733473 2004-02-13 NA -0.92845336 2004-02-16 -2.07607585 NA 2004-02-20 -1.78439244 NA 2004-02-24 -0.19533304 NA 2004-02-25 NA 0.56060280 2004-02-26 NA 0.08291711 R> R> R> ################################################### R> ### chunk number 24: merge R> ################################################### R> merge(z1, z2, all = FALSE) z1 z2 2004-01-05 0.7467599 -0.04149429 2004-01-19 -0.2982353 -0.52575918 2004-02-12 0.2217044 -0.62733473 R> R> R> ################################################### R> ### chunk number 25: merge2 R> ################################################### R> merge(z1, pi, 1:10) z1 pi 1:10 2004-01-05 0.74675994 3.141593 1 2004-01-14 0.02107873 3.141593 2 2004-01-19 -0.29823529 3.141593 3 2004-01-25 0.68625772 3.141593 4 2004-01-27 1.94078850 3.141593 5 2004-02-07 1.27384445 3.141593 6 2004-02-12 0.22170438 3.141593 7 2004-02-16 -2.07607585 3.141593 8 2004-02-20 -1.78439244 3.141593 9 2004-02-24 -0.19533304 3.141593 10 R> R> R> ################################################### R> ### chunk number 26: aggregate R> ################################################### R> firstofmonth <- function(x) as.Date(sub("..$", "01", format(x))) R> aggregate(Z, firstofmonth(index(Z)), mean) Aa Bb Cc 2004-02-01 -0.1377964 0.40676219 -0.2376514 2004-03-01 -0.1667933 0.03905223 -0.2870087 R> aggregate(Z, firstofmonth, head, 1) Aa Bb Cc 2004-02-01 1.255434 0.6815732 -0.6329205 2004-03-01 -1.208610 1.4237978 -0.8161448 R> R> R> ################################################### R> ### chunk number 27: disaggregate R> ################################################### R> Nile.na <- merge(as.zoo(Nile), zoo(, seq(start(Nile)[1], end(Nile)[1], 1/4))) R> head(as.zoo(Nile)) 1871 1872 1873 1874 1875 1876 1120 1160 963 1210 1160 1160 R> head(na.approx(Nile.na)) 1871(1) 1871(2) 1871(3) 1871(4) 1872(1) 1872(2) 1120.00 1130.00 1140.00 1150.00 1160.00 1110.75 R> head(na.locf(Nile.na)) 1871(1) 1871(2) 1871(3) 1871(4) 1872(1) 1872(2) 1120 1120 1120 1120 1160 1160 R> head(na.spline(Nile.na)) 1871(1) 1871(2) 1871(3) 1871(4) 1872(1) 1872(2) 1120.000 1199.059 1224.985 1208.419 1160.000 1091.970 R> R> R> ################################################### R> ### chunk number 28: Ops R> ################################################### R> z1 + z2 2004-01-05 2004-01-19 2004-02-12 0.7052657 -0.8239945 -0.4056304 R> z1 < z2 2004-01-05 2004-01-19 2004-02-12 FALSE FALSE FALSE R> R> R> ################################################### R> ### chunk number 29: cumsum R> ################################################### R> cumsum(Z) Aa Bb Cc 2004-02-02 1.2554339 0.6815732 -0.6329205 2004-02-08 -0.2391494 2.0049854 -2.1273432 2004-02-09 -2.1137718 1.1316925 -1.5000035 2004-02-21 -2.2591579 1.5840415 -1.6459775 2004-02-22 -2.0337337 2.1224309 -1.4146162 2004-02-29 -0.8267785 2.4405731 -1.4259082 2004-03-05 -2.0353888 3.8643710 -2.2420530 2004-03-10 -2.1457844 5.2121135 -1.2868283 2004-03-14 -1.3037606 2.4736933 -1.0553214 2004-03-20 -1.4939516 2.5967820 -2.5739429 R> R> R> ################################################### R> ### chunk number 30: coredata R> ################################################### R> coredata(z1) [1] 0.74675994 0.02107873 -0.29823529 0.68625772 1.94078850 1.27384445 [7] 0.22170438 -2.07607585 -1.78439244 -0.19533304 R> coredata(z1) <- 1:10 R> z1 2004-01-05 2004-01-14 2004-01-19 2004-01-25 2004-01-27 2004-02-07 2004-02-12 1 2 3 4 5 6 7 2004-02-16 2004-02-20 2004-02-24 8 9 10 R> R> R> ################################################### R> ### chunk number 31: index R> ################################################### R> index(z2) [1] "2004-01-03 GMT" "2004-01-05 GMT" "2004-01-17 GMT" "2004-01-19 GMT" [5] "2004-01-24 GMT" "2004-02-08 GMT" "2004-02-12 GMT" "2004-02-13 GMT" [9] "2004-02-25 GMT" "2004-02-26 GMT" R> R> R> ################################################### R> ### chunk number 32: index2 R> ################################################### R> index(z2) <- index(z1) R> z2 2004-01-05 2004-01-14 2004-01-19 2004-01-25 2004-01-27 2004-02-07 0.94306673 -0.04149429 0.59448077 -0.52575918 -0.96739776 0.95605566 2004-02-12 2004-02-16 2004-02-20 2004-02-24 -0.62733473 -0.92845336 0.56060280 0.08291711 R> R> R> ################################################### R> ### chunk number 33: startend R> ################################################### R> start(z1) [1] "2004-01-05 GMT" R> end(z1) [1] "2004-02-24 GMT" R> R> R> ################################################### R> ### chunk number 34: window R> ################################################### R> window(Z, start = as.Date("2004-03-01")) Aa Bb Cc 2004-03-05 -1.2086102 1.4237978 -0.8161448 2004-03-10 -0.1103956 1.3477425 0.9552247 2004-03-14 0.8420238 -2.7384202 0.2315069 2004-03-20 -0.1901910 0.1230887 -1.5186216 R> window(Z, index = index(Z)[5:8], end = as.Date("2004-03-01")) Aa Bb Cc 2004-02-22 0.2254242 0.5383894 0.23136133 2004-02-29 1.2069552 0.3181422 -0.01129202 R> R> R> ################################################### R> ### chunk number 35: window2 R> ################################################### R> window(z1, end = as.POSIXct("2004-02-01")) <- 9:5 R> z1 2004-01-05 2004-01-14 2004-01-19 2004-01-25 2004-01-27 2004-02-07 2004-02-12 9 8 7 6 5 6 7 2004-02-16 2004-02-20 2004-02-24 8 9 10 R> R> R> ################################################### R> ### chunk number 36: lagdiff R> ################################################### R> lag(z1, k = -1) 2004-01-14 2004-01-19 2004-01-25 2004-01-27 2004-02-07 2004-02-12 2004-02-16 9 8 7 6 5 6 7 2004-02-20 2004-02-24 8 9 R> merge(z1, lag(z1, k = 1)) z1 lag(z1, k = 1) 2004-01-05 9 8 2004-01-14 8 7 2004-01-19 7 6 2004-01-25 6 5 2004-01-27 5 6 2004-02-07 6 7 2004-02-12 7 8 2004-02-16 8 9 2004-02-20 9 10 2004-02-24 10 NA R> diff(z1) 2004-01-14 2004-01-19 2004-01-25 2004-01-27 2004-02-07 2004-02-12 2004-02-16 -1 -1 -1 -1 1 1 1 2004-02-20 2004-02-24 1 1 R> R> R> ################################################### R> ### chunk number 37: coercion R> ################################################### R> as.data.frame(Z) Aa Bb Cc 2004-02-02 1.2554339 0.6815732 -0.63292049 2004-02-08 -1.4945833 1.3234122 -1.49442269 2004-02-09 -1.8746225 -0.8732929 0.62733971 2004-02-21 -0.1453861 0.4523490 -0.14597401 2004-02-22 0.2254242 0.5383894 0.23136133 2004-02-29 1.2069552 0.3181422 -0.01129202 2004-03-05 -1.2086102 1.4237978 -0.81614483 2004-03-10 -0.1103956 1.3477425 0.95522468 2004-03-14 0.8420238 -2.7384202 0.23150695 2004-03-20 -0.1901910 0.1230887 -1.51862157 R> R> R> ################################################### R> ### chunk number 38: na R> ################################################### R> z1[sample(1:10, 3)] <- NA R> z1 2004-01-05 2004-01-14 2004-01-19 2004-01-25 2004-01-27 2004-02-07 2004-02-12 9 NA 7 6 5 6 NA 2004-02-16 2004-02-20 2004-02-24 8 9 NA R> na.omit(z1) 2004-01-05 2004-01-19 2004-01-25 2004-01-27 2004-02-07 2004-02-16 2004-02-20 9 7 6 5 6 8 9 R> na.contiguous(z1) 2004-01-19 2004-01-25 2004-01-27 2004-02-07 7 6 5 6 R> na.approx(z1) 2004-01-05 2004-01-14 2004-01-19 2004-01-25 2004-01-27 2004-02-07 2004-02-12 9.000000 7.714286 7.000000 6.000000 5.000000 6.000000 7.111111 2004-02-16 2004-02-20 8.000000 9.000000 R> na.approx(z1, 1:NROW(z1)) 2004-01-05 2004-01-14 2004-01-19 2004-01-25 2004-01-27 2004-02-07 2004-02-12 9 8 7 6 5 6 7 2004-02-16 2004-02-20 8 9 R> na.locf(z1) 2004-01-05 2004-01-14 2004-01-19 2004-01-25 2004-01-27 2004-02-07 2004-02-12 9 9 7 6 5 6 6 2004-02-16 2004-02-20 2004-02-24 8 9 9 R> R> R> ################################################### R> ### chunk number 39: rollapply R> ################################################### R> rollapply(Z, 5, sd) Aa Bb Cc 2004-02-09 1.2814876 0.8018950 0.8218959 2004-02-21 1.2658555 0.7891358 0.8025043 2004-02-22 1.2102011 0.8206819 0.5319727 2004-02-29 0.8662296 0.5266261 0.6411751 2004-03-05 0.9363400 1.7011273 0.6356144 2004-03-10 0.9508642 1.6892246 0.9578196 R> rollapply(Z, 5, sd, fill = NA, align = "left") Aa Bb Cc 2004-02-02 1.2814876 0.8018950 0.8218959 2004-02-08 1.2658555 0.7891358 0.8025043 2004-02-09 1.2102011 0.8206819 0.5319727 2004-02-21 0.8662296 0.5266261 0.6411751 2004-02-22 0.9363400 1.7011273 0.6356144 2004-02-29 0.9508642 1.6892246 0.9578196 2004-03-05 NA NA NA 2004-03-10 NA NA NA 2004-03-14 NA NA NA 2004-03-20 NA NA NA R> R> R> ################################################### R> ### chunk number 40: rollmean R> ################################################### R> rollmean(z2, 5, fill = NA) 2004-01-05 2004-01-14 2004-01-19 2004-01-25 2004-01-27 NA NA 0.0005792538 0.0031770388 -0.1139910497 2004-02-07 2004-02-12 2004-02-16 2004-02-20 2004-02-24 -0.4185778750 -0.2013054791 0.0087574946 NA NA R> R> R> ################################################### R> ### chunk number 41: strucchange1 R> ################################################### R> library("strucchange") R> data("Journals", package = "AER") Error in find.package(package, lib.loc, verbose = verbose) : there is no package called 'AER' Calls: data -> find.package Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.8-12
Check: re-building of vignette outputs
Result: NOTE Note: skipping ‘zoo.Rnw’ due to unavailable dependencies: 'AER' Flavor: r-devel-linux-x86_64-debian-gcc