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