CRAN Package Check Results for Package zoo

Last updated on 2024-06-13 04:52:45 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.8-12 9.99 96.02 106.01 OK
r-devel-linux-x86_64-debian-gcc 1.8-12 6.42 57.53 63.95 ERROR
r-devel-linux-x86_64-fedora-clang 1.8-12 143.32 OK
r-devel-linux-x86_64-fedora-gcc 1.8-12 149.94 OK
r-devel-windows-x86_64 1.8-12 14.00 161.00 175.00 OK
r-patched-linux-x86_64 1.8-12 11.27 95.95 107.22 OK
r-release-linux-x86_64 1.8-12 8.94 95.59 104.53 OK
r-release-macos-arm64 1.8-12 56.00 OK
r-release-macos-x86_64 1.8-12 93.00 OK
r-release-windows-x86_64 1.8-12 13.00 181.00 194.00 OK
r-oldrel-macos-arm64 1.8-12 86.00 OK
r-oldrel-macos-x86_64 1.8-12 135.00 OK
r-oldrel-windows-x86_64 1.8-12 14.00 171.00 185.00 OK

Check Details

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