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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: tvctomat
> ### Title: Create a Time-varying, Intra-individual Covariate (tvcov) Object
> ### Aliases: tvctomat
> ### Keywords: manip
> 
> ### ** Examples
> 
> z <- matrix(rpois(20,5),ncol=5)
> print(tvc <- tvctomat(z, units="days"))
           
Names: z   
Units: days
Number of individuals:                4 
Number of observations:               20 
Number of observations per individual:
 5 5 5 5 
> covariates(tvc)
 [1]  4  3  6  6  6  4  8  2  4 11  5  9  3  7  4  8  6  3  5  7
> names(tvc)
[1] "z"
> v <- data.frame(matrix(rep(c("a","b","c","d","e"),4),ncol=5))
> print(tvc2 <- tvctomat(v, oldtvc=tvc, units=NA))
                
Names: z    v   
Units: days <NA>
Number of individuals:                4 
Number of observations:               20 
Number of observations per individual:
 5 5 5 5 
> covariates(tvc2)
    z v
1   4 a
2   3 e
3   6 d
4   6 c
5   6 b
6   4 b
7   8 a
8   2 e
9   4 d
10 11 c
11  5 c
12  9 b
13  3 a
14  7 e
15  4 d
16  8 d
17  6 c
18  3 b
19  5 a
20  7 e
> print(tvc3 <- tvctomat(v, oldtvc=tvc, dataframe=FALSE, units=NA))
                               
Names: z    vb   vc   vd   ve  
Units: days <NA> <NA> <NA> <NA>
Number of individuals:                4 
Number of observations:               20 
Number of observations per individual:
 5 5 5 5 
> covariates(tvc3)
    z vb vc vd ve
1   4  0  0  0  0
2   3  0  0  0  1
3   6  0  0  1  0
4   6  0  1  0  0
5   6  1  0  0  0
6   4  1  0  0  0
7   8  0  0  0  0
8   2  0  0  0  1
9   4  0  0  1  0
10 11  0  1  0  0
11  5  0  1  0  0
12  9  1  0  0  0
13  3  0  0  0  0
14  7  0  0  0  1
15  4  0  0  1  0
16  8  0  0  1  0
17  6  0  1  0  0
18  3  1  0  0  0
19  5  0  0  0  0
20  7  0  0  0  1
> print(tvc4 <- tvctomat(tvc2, interaction=c("z","v")))
Error in dimnames(x) <- dn : 
  length of 'dimnames' [2] not equal to array extent
Calls: print -> tvctomat -> colnames<-
Execution halted