Running examples in ‘hierNet-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: hierNet.cv
> ### Title: Cross-validation function for hierNet
> ### Aliases: hierNet.cv
> 
> ### ** Examples
> 
> set.seed(12)
> x=matrix(rnorm(100*10),ncol=10)
> x=scale(x,TRUE,TRUE)
> y=x[,1]+2*x[,2]+ x[,1]*x[,2]+3*rnorm(100)
> fit=hierNet.path(x,y)
i,lam= 1 129.72
GG converged in 1 iterations.
i,lam= 2 101.8
GG converged in 20 iterations.
i,lam= 3 79.89
GG converged in 26 iterations.
i,lam= 4 62.69
GG converged in 26 iterations.
i,lam= 5 49.2
GG converged in 26 iterations.
i,lam= 6 38.61
GG converged in 48 iterations.
i,lam= 7 30.3
GG converged in 57 iterations.
i,lam= 8 23.78
GG converged in 62 iterations.
i,lam= 9 18.66
GG converged in 55 iterations.
i,lam= 10 14.64
GG converged in 63 iterations.
i,lam= 11 11.49
GG converged in 60 iterations.
i,lam= 12 9.02
GG converged in 119 iterations.
i,lam= 13 7.08
GG converged in 122 iterations.
i,lam= 14 5.55
GG converged in 139 iterations.
i,lam= 15 4.36
GG converged in 147 iterations.
i,lam= 16 3.42
GG converged in 200 iterations.
i,lam= 17 2.68
GG converged in 374 iterations.
i,lam= 18 2.11
GG converged in 291 iterations.
i,lam= 19 1.65
GG converged in 602 iterations.
i,lam= 20 1.3
GG converged in 657 iterations.
> fitcv=hierNet.cv(fit,x,y)
Fold 1 :i,lam= 1 129.72
GG converged in 1 iterations.
i,lam= 2 101.8
GG converged in 21 iterations.
i,lam= 3 79.89
GG converged in 25 iterations.
i,lam= 4 62.69
GG converged in 25 iterations.
i,lam= 5 49.2
GG converged in 50 iterations.
i,lam= 6 38.61
GG converged in 64 iterations.
i,lam= 7 30.3
GG converged in 95 iterations.
i,lam= 8 23.78
GG converged in 114 iterations.
i,lam= 9 18.66
GG converged in 144 iterations.
i,lam= 10 14.64
GG converged in 144 iterations.
i,lam= 11 11.49
GG converged in 79 iterations.
i,lam= 12 9.02
GG converged in 133 iterations.
i,lam= 13 7.08
GG converged in 162 iterations.
i,lam= 14 5.55
GG converged in 156 iterations.
i,lam= 15 4.36
GG converged in 151 iterations.
i,lam= 16 3.42
GG converged in 166 iterations.
i,lam= 17 2.68
GG converged in 245 iterations.
i,lam= 18 2.11
GG converged in 307 iterations.
i,lam= 19 1.65
GG converged in 485 iterations.
i,lam= 20 1.3
GG converged in 807 iterations.

Fold 2 :i,lam= 1 129.72
GG converged in 1 iterations.
i,lam= 2 101.8
GG converged in 22 iterations.
i,lam= 3 79.89
GG converged in 22 iterations.
i,lam= 4 62.69
GG converged in 27 iterations.
i,lam= 5 49.2
GG converged in 26 iterations.
i,lam= 6 38.61
GG converged in 48 iterations.
i,lam= 7 30.3
GG converged in 44 iterations.
i,lam= 8 23.78
GG converged in 55 iterations.
i,lam= 9 18.66
GG converged in 62 iterations.
i,lam= 10 14.64
GG converged in 51 iterations.
i,lam= 11 11.49
GG converged in 60 iterations.
i,lam= 12 9.02
GG converged in 86 iterations.
i,lam= 13 7.08
GG converged in 134 iterations.
i,lam= 14 5.55
GG converged in 122 iterations.
i,lam= 15 4.36
GG converged in 222 iterations.
i,lam= 16 3.42
GG converged in 402 iterations.
i,lam= 17 2.68
GG converged in 272 iterations.
i,lam= 18 2.11
GG converged in 345 iterations.
i,lam= 19 1.65
GG converged in 630 iterations.
i,lam= 20 1.3
GG converged in 700 iterations.

Fold 3 :i,lam= 1 129.72
GG converged in 7 iterations.
i,lam= 2 101.8
GG converged in 10 iterations.
i,lam= 3 79.89
GG converged in 16 iterations.
i,lam= 4 62.69
GG converged in 16 iterations.
i,lam= 5 49.2
GG converged in 26 iterations.
i,lam= 6 38.61
GG converged in 26 iterations.
i,lam= 7 30.3
GG converged in 33 iterations.
i,lam= 8 23.78
GG converged in 44 iterations.
i,lam= 9 18.66
GG converged in 46 iterations.
i,lam= 10 14.64
GG converged in 91 iterations.
i,lam= 11 11.49
GG converged in 103 iterations.
i,lam= 12 9.02
GG converged in 139 iterations.
i,lam= 13 7.08
GG converged in 181 iterations.
i,lam= 14 5.55
GG converged in 232 iterations.
i,lam= 15 4.36
GG converged in 211 iterations.
i,lam= 16 3.42
GG converged in 293 iterations.
i,lam= 17 2.68
GG converged in 335 iterations.
i,lam= 18 2.11
GG converged in 491 iterations.
i,lam= 19 1.65
GG converged in 667 iterations.
i,lam= 20 1.3
GG converged in 878 iterations.

Fold 4 :i,lam= 1 129.72
GG converged in 9 iterations.
i,lam= 2 101.8
GG converged in 10 iterations.
i,lam= 3 79.89
GG converged in 38 iterations.
i,lam= 4 62.69
GG converged in 41 iterations.
i,lam= 5 49.2
GG converged in 35 iterations.
i,lam= 6 38.61
GG converged in 37 iterations.
i,lam= 7 30.3
GG converged in 48 iterations.
i,lam= 8 23.78
GG converged in 66 iterations.
i,lam= 9 18.66
GG converged in 76 iterations.
i,lam= 10 14.64
GG converged in 67 iterations.
i,lam= 11 11.49
GG converged in 82 iterations.
i,lam= 12 9.02
GG converged in 90 iterations.
i,lam= 13 7.08
GG converged in 132 iterations.
i,lam= 14 5.55
GG converged in 169 iterations.
i,lam= 15 4.36
GG converged in 176 iterations.
i,lam= 16 3.42
GG converged in 168 iterations.
i,lam= 17 2.68
GG converged in 183 iterations.
i,lam= 18 2.11
GG converged in 229 iterations.
i,lam= 19 1.65
GG converged in 377 iterations.
i,lam= 20 1.3
GG converged in 573 iterations.

Fold 5 :i,lam= 1 129.72
GG converged in 1 iterations.
i,lam= 2 101.8
GG converged in 19 iterations.
i,lam= 3 79.89
GG converged in 23 iterations.
i,lam= 4 62.69
GG converged in 27 iterations.
i,lam= 5 49.2
GG converged in 26 iterations.
i,lam= 6 38.61
GG converged in 27 iterations.
i,lam= 7 30.3
GG converged in 60 iterations.
i,lam= 8 23.78
GG converged in 78 iterations.
i,lam= 9 18.66
GG converged in 45 iterations.
i,lam= 10 14.64
GG converged in 79 iterations.
i,lam= 11 11.49
GG converged in 64 iterations.
i,lam= 12 9.02
GG converged in 297 iterations.
i,lam= 13 7.08
GG converged in 124 iterations.
i,lam= 14 5.55
GG converged in 138 iterations.
i,lam= 15 4.36
GG converged in 277 iterations.
i,lam= 16 3.42
GG converged in 222 iterations.
i,lam= 17 2.68
GG converged in 298 iterations.
i,lam= 18 2.11
GG converged in 308 iterations.
i,lam= 19 1.65
GG converged in 392 iterations.
i,lam= 20 1.3
GG converged in 495 iterations.

Fold 6 :i,lam= 1 129.72
GG converged in 1 iterations.
i,lam= 2 101.8
GG converged in 21 iterations.
i,lam= 3 79.89
GG converged in 25 iterations.
i,lam= 4 62.69
GG converged in 25 iterations.
i,lam= 5 49.2
GG converged in 24 iterations.
i,lam= 6 38.61
GG converged in 47 iterations.
i,lam= 7 30.3
GG converged in 34 iterations.
i,lam= 8 23.78
GG converged in 49 iterations.
i,lam= 9 18.66
GG converged in 59 iterations.
i,lam= 10 14.64
GG converged in 186 iterations.
i,lam= 11 11.49
GG converged in 193 iterations.
i,lam= 12 9.02
GG converged in 131 iterations.
i,lam= 13 7.08
GG converged in 151 iterations.
i,lam= 14 5.55
GG converged in 210 iterations.
i,lam= 15 4.36
GG converged in 150 iterations.
i,lam= 16 3.42
GG converged in 200 iterations.
i,lam= 17 2.68
GG converged in 274 iterations.
i,lam= 18 2.11
GG converged in 446 iterations.
i,lam= 19 1.65
GG converged in 528 iterations.
i,lam= 20 1.3
GG converged in 681 iterations.

Fold 7 :i,lam= 1 129.72
GG converged in 1 iterations.
i,lam= 2 101.8
GG converged in 20 iterations.
i,lam= 3 79.89
GG converged in 24 iterations.
i,lam= 4 62.69
GG converged in 29 iterations.
i,lam= 5 49.2
GG converged in 28 iterations.
i,lam= 6 38.61
GG converged in 30 iterations.
i,lam= 7 30.3
GG converged in 29 iterations.
i,lam= 8 23.78
GG converged in 89 iterations.
i,lam= 9 18.66
GG converged in 78 iterations.
i,lam= 10 14.64
GG converged in 131 iterations.
i,lam= 11 11.49
GG converged in 82 iterations.
i,lam= 12 9.02
GG converged in 187 iterations.
i,lam= 13 7.08
GG converged in 258 iterations.
i,lam= 14 5.55
GG converged in 142 iterations.
i,lam= 15 4.36
GG converged in 323 iterations.
i,lam= 16 3.42
GG converged in 387 iterations.
i,lam= 17 2.68
GG converged in 462 iterations.
i,lam= 18 2.11
GG converged in 490 iterations.
i,lam= 19 1.65
GG converged in 655 iterations.
i,lam= 20 1.3
GG converged in 626 iterations.

Fold 8 :i,lam= 1 129.72
GG converged in 1 iterations.
i,lam= 2 101.8
GG converged in 17 iterations.
i,lam= 3 79.89
GG converged in 23 iterations.
i,lam= 4 62.69
GG converged in 23 iterations.
i,lam= 5 49.2
GG converged in 25 iterations.
i,lam= 6 38.61
GG converged in 28 iterations.
i,lam= 7 30.3
GG converged in 51 iterations.
i,lam= 8 23.78
GG converged in 28 iterations.
i,lam= 9 18.66
GG converged in 69 iterations.
i,lam= 10 14.64
GG converged in 78 iterations.
i,lam= 11 11.49
GG converged in 77 iterations.
i,lam= 12 9.02
GG converged in 157 iterations.
i,lam= 13 7.08
GG converged in 124 iterations.
i,lam= 14 5.55
GG converged in 127 iterations.
i,lam= 15 4.36
GG converged in 175 iterations.
i,lam= 16 3.42
GG converged in 258 iterations.
i,lam= 17 2.68
GG converged in 263 iterations.
i,lam= 18 2.11
GG converged in 292 iterations.
i,lam= 19 1.65
GG converged in 347 iterations.
i,lam= 20 1.3
GG converged in 419 iterations.

Fold 9 :i,lam= 1 129.72
GG converged in 1 iterations.
i,lam= 2 101.8
GG converged in 17 iterations.
i,lam= 3 79.89
GG converged in 22 iterations.
i,lam= 4 62.69
GG converged in 23 iterations.
i,lam= 5 49.2
GG converged in 23 iterations.
i,lam= 6 38.61
GG converged in 57 iterations.
i,lam= 7 30.3
GG converged in 60 iterations.
i,lam= 8 23.78
GG converged in 25 iterations.
i,lam= 9 18.66
GG converged in 55 iterations.
i,lam= 10 14.64
GG converged in 65 iterations.
i,lam= 11 11.49
GG converged in 114 iterations.
i,lam= 12 9.02
GG converged in 162 iterations.
i,lam= 13 7.08
GG converged in 164 iterations.
i,lam= 14 5.55
GG converged in 198 iterations.
i,lam= 15 4.36
GG converged in 212 iterations.
i,lam= 16 3.42
GG converged in 195 iterations.
i,lam= 17 2.68
GG converged in 239 iterations.
i,lam= 18 2.11
GG converged in 417 iterations.
i,lam= 19 1.65
GG converged in 610 iterations.
i,lam= 20 1.3
GG converged in 903 iterations.

Fold 10 :i,lam= 1 129.72
GG converged in 1 iterations.
i,lam= 2 101.8
GG converged in 23 iterations.
i,lam= 3 79.89
GG converged in 27 iterations.
i,lam= 4 62.69
GG converged in 29 iterations.
i,lam= 5 49.2
GG converged in 43 iterations.
i,lam= 6 38.61
GG converged in 60 iterations.
i,lam= 7 30.3
GG converged in 56 iterations.
i,lam= 8 23.78
GG converged in 45 iterations.
i,lam= 9 18.66
GG converged in 82 iterations.
i,lam= 10 14.64
GG converged in 86 iterations.
i,lam= 11 11.49
GG converged in 83 iterations.
i,lam= 12 9.02
GG converged in 105 iterations.
i,lam= 13 7.08
GG converged in 120 iterations.
i,lam= 14 5.55
GG converged in 123 iterations.
i,lam= 15 4.36
GG converged in 201 iterations.
i,lam= 16 3.42
GG converged in 211 iterations.
i,lam= 17 2.68
GG converged in 323 iterations.
i,lam= 18 2.11
GG converged in 412 iterations.
i,lam= 19 1.65
GG converged in 506 iterations.
i,lam= 20 1.3
GG converged in 572 iterations.

> print(fitcv)
$lamlist
 [1] 129.715912 101.795855  79.885312  62.690795  49.197227  38.608014
 [7]  30.298024  23.776676  18.658984  14.642824  11.491102   9.017757
[13]   7.076775   5.553569   4.358219   3.420156   2.684001   2.106297
[19]   1.652937   1.297159

$cv.err
 [1] 12.494149 12.143196 10.960500 10.114350  9.511699  9.371882  9.476333
 [8]  9.615079  9.748537  9.652509  9.770550 10.084744 10.398410 10.974644
[15] 12.175201 13.857525 15.997153 18.582720 21.574081 24.703240

$cv.se
 [1] 1.2660204 1.2213803 1.0362950 0.8877084 0.7771144 0.6988518 0.7048982
 [8] 0.7364616 0.7859574 0.7665304 0.8169044 0.8867560 1.0054405 1.2007586
[15] 1.5517371 2.0736261 2.7122929 3.4648870 4.4971689 5.5643056

$lamhat
[1] 38.60801

$lamhat.1se
[1] 49.19723

$nonzero
 [1]  1  2  6  6  6 13 15 19 19 21 23 30 33 34 36 40 43 44 52 55

$folds
$folds$`1`
 [1] 34 13  9 88 24 75 69 32 15 81

$folds$`2`
 [1] 22 49 20 27 73 52 74 87 83 39

$folds$`3`
 [1] 85 10 92 30 11 43 12  2  1  4

$folds$`4`
 [1]  68  93  54  44  98  55  16   7 100   8

$folds$`5`
 [1] 77 91 62 14 18 48  3 38 56 17

$folds$`6`
 [1] 71 94 97 84 57 36 25 72 67 37

$folds$`7`
 [1] 53 65 19 29 35 46 86 95 89  5

$folds$`8`
 [1] 80 51 41 26 90 82 99 60 28 50

$folds$`9`
 [1] 42 47 58 61 45 59 21 70 33  6

$folds$`10`
 [1] 64 79 40 31 78 23 96 66 76 63


$call
hierNet.cv(fit = fit, x = x, y = y)

attr(,"class")
[1] "hierNet.cv"
> plot(fitcv)
Error in xy.coords(x, y, xlabel, ylabel, log) : 
  'x' is a list, but does not have components 'x' and 'y'
Calls: plot -> plot.default -> xy.coords
Execution halted