CRAN Package Check Results for Package plm

Last updated on 2021-12-09 03:59:40 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.4-3 20.57 254.81 275.38 OK
r-devel-linux-x86_64-debian-gcc 2.4-3 16.80 192.19 208.99 OK
r-devel-linux-x86_64-fedora-clang 2.4-3 329.84 OK
r-devel-linux-x86_64-fedora-gcc 2.4-3 327.00 OK
r-devel-windows-x86_64-new-UL 2.4-3 63.00 315.00 378.00 OK
r-devel-windows-x86_64-new-TK 2.4-3 OK
r-devel-windows-x86_64-old 2.4-3 42.00 195.00 237.00 ERROR
r-patched-linux-x86_64 2.4-3 19.91 242.13 262.04 OK
r-release-linux-x86_64 2.4-3 18.22 241.59 259.81 OK
r-release-macos-arm64 2.4-3 OK
r-release-macos-x86_64 2.4-3 OK
r-release-windows-ix86+x86_64 2.4-3 35.00 291.00 326.00 OK
r-oldrel-macos-x86_64 2.4-3 OK
r-oldrel-windows-ix86+x86_64 2.4-3 56.00 291.00 347.00 OK

Check Details

Version: 2.4-3
Check: examples
Result: ERROR
    Running examples in 'plm-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: is.pconsecutive
    > ### Title: Check if time periods are consecutive
    > ### Aliases: is.pconsecutive is.pconsecutive.default
    > ### is.pconsecutive.data.frame is.pconsecutive.pseries
    > ### is.pconsecutive.pdata.frame is.pconsecutive.panelmodel
    > ### Keywords: attribute
    >
    > ### ** Examples
    >
    >
    > data("Grunfeld", package = "plm")
    > is.pconsecutive(Grunfeld)
     1 2 3 4 5 6 7 8 9 10
    TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
    > is.pconsecutive(Grunfeld, index=c("firm", "year"))
     1 2 3 4 5 6 7 8 9 10
    TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
    >
    > # delete 2nd row (2nd time period for first individual)
    > # -> non consecutive
    > Grunfeld_missing_period <- Grunfeld[-2, ]
    > is.pconsecutive(Grunfeld_missing_period)
     1 2 3 4 5 6 7 8 9 10
    FALSE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
    > all(is.pconsecutive(Grunfeld_missing_period)) # FALSE
    [1] FALSE
    >
    > # delete rows 1 and 2 (1st and 2nd time period for first individual)
    > # -> consecutive
    > Grunfeld_missing_period_other <- Grunfeld[-c(1,2), ]
    > is.pconsecutive(Grunfeld_missing_period_other) # all TRUE
     1 2 3 4 5 6 7 8 9 10
    TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
    >
    > # delete year 1937 (3rd period) for _all_ individuals
    > Grunfeld_wo_1937 <- Grunfeld[Grunfeld$year != 1937, ]
    > is.pconsecutive(Grunfeld_wo_1937) # all FALSE
     1 2 3 4 5 6 7 8 9 10
    FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
    >
    > # pdata.frame interface
    > pGrunfeld <- pdata.frame(Grunfeld)
    > pGrunfeld_missing_period <- pdata.frame(Grunfeld_missing_period)
    > is.pconsecutive(pGrunfeld) # all TRUE
     1 2 3 4 5 6 7 8 9 10
    TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
    > is.pconsecutive(pGrunfeld_missing_period) # first FALSE, others TRUE
     1 2 3 4 5 6 7 8 9 10
    FALSE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
    >
    >
    > # panelmodel interface (first, estimate some models)
    > mod_pGrunfeld <- plm(inv ~ value + capital, data = Grunfeld)
    > mod_pGrunfeld_missing_period <- plm(inv ~ value + capital, data = Grunfeld_missing_period)
    >
    > is.pconsecutive(mod_pGrunfeld)
    Error in is.pconsecutive.default(x, index[[1L]], index[[2L]], na.rm.tindex = na.rm.tindex, :
     arguments 'x', 'id', 'time' must have same length: length(x): 10, length(id): 200, length(time): 200
    Calls: is.pconsecutive ... is.pconsecutive.panelmodel -> is.pconsecutive.default
    Execution halted
Flavor: r-devel-windows-x86_64-old