Running examples in 'pems.utils-Ex.R' failed
The error most likely occurred in:

> ### Name: 2.1.1.generic.pems.handlers
> ### Title: Generic handling of pems objects
> ### Aliases: 2.1.1.generic.pems.handlers generic.pems.handlers
> ###   pems.generics as.data.frame.pems dim.pems $.pems $<-.pems [.pems
> ###   [<-.pems [[.pems [[<-.pems with.pems subset.pems head.pems tail.pems
> ###   names.pems names<-.pems print.pems plot.pems summary.pems units.pems
> ###   units<-.pems fortify.pems
> ### Keywords: methods
> 
> ### ** Examples
> 
> 
> ##example 1
> ##basics pems handling
> 
> #extract a subset pems object from pems.1
> a <- pems.1[1:4, 1:5]
> a      
           time.stamp local.time conc.co conc.co2 conc.hc
1 2005-09-08 11:46:07          0       0        0       0
2 2005-09-08 11:46:08          1       0        0       0
3 2005-09-08 11:46:09          2       0        0       0
4 2005-09-08 11:46:10          3       0        0       0

pems object: 5 data series (each 4 cases)
	with supporting structures: units, constants, history
	[and unique tags: pems]

> 
> #indices work like data.frame
> #a[x] and a[,x] recovers element/column number x
> #a[x,] recovers row number x
> #a["name"] and a[,"name"] recovers element/column named "name"
> #a[4:5, "name"] recovers rows 4 to 5 of element/column named "name"
> #a[x,y] <- z inserts z into a at row x, element y 
> #etc
> 
> #insert 10 in at element 3, row 2
> a[2,3] <- 10
> a
           time.stamp local.time conc.co conc.co2 conc.hc
1 2005-09-08 11:46:07          0       0        0       0
2 2005-09-08 11:46:08          1      10        0       0
3 2005-09-08 11:46:09          2       0        0       0
4 2005-09-08 11:46:10          3       0        0       0

pems object: 5 data series (each 4 cases)
	with supporting structures: units, constants, history
	[and unique tags: pems]

> 
> #replace element conc.co2 with conc.co
> a["conc.co2"] <- a$conc.co
> a
           time.stamp local.time conc.co conc.co2 conc.hc
1 2005-09-08 11:46:07          0       0        0       0
2 2005-09-08 11:46:08          1      10       10       0
3 2005-09-08 11:46:09          2       0        0       0
4 2005-09-08 11:46:10          3       0        0       0

pems object: 5 data series (each 4 cases)
	with supporting structures: units, constants, history
	[and unique tags: pems]

> 
> #Note: by default pems objects subsetting and inserting is 
> #more rigorous than data.frame subsetting/insertion
> #for example, the following would generate an error 
> #a[1:2, "conc.hc"] <- 8
> #because the target, a[], and insert, value, dimensions do not 
> #match exactly: target 2 x 1; insert 1 x 1 
> 
> #By default no wrapping is applied.  
> 
> #the force argument allows the user to control how mismatching 
> #targets and insertions are handled
> 
> #na pad target for larger insert
> a[1:2, "conc.hc", force="na.pad.target"] <- 1:5
Error in `[[<-.data.frame`(`*tmp*`, i, value = c(1126179967, 1126179968,  : 
  replacement has 7 rows, data has 4
Calls: [<- ... [<-.data.frame -> xpdrows.data.frame -> [[<- -> [[<-.data.frame
Execution halted