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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: criteria
> ### Title: Penalized criteria based on estimation of degrees of freedom
> ### Aliases: criteria criteria,blockSeg-method
> 
> ### ** Examples
> 
> n <- 100
> K <- 5
> mu <- suppressWarnings(matrix(rep(c(1,0),ceiling(K**2/2)), K,K))
> Y <- rblockdata(n,mu,sigma=.5)$Y
> res <- blockSeg(Y, 50)
Step 1:	 variable 0 	added
Step 2:	 variable 8080 	added
Step 3:	 variable 6036 	added
Step 4:	 variable 3660 	added
Step 5:	 variable 6262 	added
Step 6:	 variable 80 	added
Step 7:	 variable 8000 	added
Step 8:	 variable 4000 	added
Step 9:	 variable 40 	added
Step 10:	 variable 8040 	added
Step 11:	 variable 4080 	added
Step 11:	 variable 8000 	deleted
Step 11:	 variable 80 	deleted
Step 12:	 variable 8000 	added
Step 13:	 variable 6080 	added
Step 14:	 variable 8060 	added
Step 14:	 variable 6262 	deleted
Step 15:	 variable 6262 	added
Step 16:	 variable 2080 	added
Step 17:	 variable 8020 	added
Step 17:	 variable 8000 	deleted
Step 18:	 variable 8000 	added
Step 19:	 variable 80 	added
Step 20:	 variable 6040 	added
Step 21:	 variable 4060 	added
Step 22:	 variable 8160 	added
Step 23:	 variable 6081 	added
Step 24:	 variable 6762 	added
Step 25:	 variable 6267 	added
Step 25:	 variable 3660 	deleted
Step 25:	 variable 6036 	deleted
Step 26:	 variable 6036 	added
Step 27:	 variable 6236 	added
Step 28:	 variable 3662 	added
Step 29:	 variable 4062 	added
Step 29:	 variable 3662 	deleted
Step 30:	 variable 3662 	added
Step 31:	 variable 4040 	added
Step 32:	 variable 6240 	added
Step 32:	 variable 4060 	deleted
Step 33:	 variable 4060 	added
Step 34:	 variable 1919 	added
Step 35:	 variable 2020 	added
Step 36:	 variable 2336 	added
Step 37:	 variable 3623 	added
Step 38:	 variable 6280 	added
Step 39:	 variable 8062 	added
Step 40:	 variable 20 	added
Step 41:	 variable 2000 	added
Step 42:	 variable 2036 	added
Step 43:	 variable 3620 	added
Step 44:	 variable 4020 	added
Step 45:	 variable 1960 	added
Step 46:	 variable 6019 	added
Step 47:	 variable 2040 	added
Step 48:	 variable 2060 	added
Step 49:	 variable 6020 	added
Step 49:	 variable 4060 	deleted
Step 50:	 variable 4060 	added
Step 51:	 variable 7940 	added
Step 52:	 variable 4079 	added
Step 52:	 variable 6019 	deleted
Step 52:	 variable 1960 	deleted
Step 53:	 variable 6019 	added
Step 54:	 variable 62 	added
Step 55:	 variable 6200 	added
Step 56:	 variable 6119 	added
Step 57:	 variable 2082 	added
Step 58:	 variable 8220 	added
Step 59:	 variable 1961 	added
Step 60:	 variable 6000 	added
Step 61:	 variable 60 	added
Step 61:	 variable 6236 	deleted
Step 62:	 variable 6236 	added
Step 63:	 variable 101 	added
Step 64:	 variable 2061 	added
Step 65:	 variable 6767 	added
Step 66:	 variable 3660 	added
Step 66:	 variable 6036 	deleted
Step 66:	 variable 6267 	deleted
Step 66:	 variable 6762 	deleted
Step 67:	 variable 6036 	added
Step 67:	 variable 6267 	added
Step 68:	 variable 5113 	added
Step 69:	 variable 1351 	added
Step 69:	 variable 3620 	deleted
Step 69:	 variable 2036 	deleted
Step 70:	 variable 3620 	added
Step 71:	 variable 7840 	added
Step 72:	 variable 4078 	added
Step 73:	 variable 1 	added
Step 74:	 variable 7839 	added
Step 75:	 variable 3978 	added
Step 76:	 variable 8140 	added
Step 77:	 variable 4081 	added
Step 78:	 variable 1802 	added
Step 79:	 variable 100 	added
Step 80:	 variable 218 	added
Step 80:	 variable 4078 	deleted
Step 80:	 variable 7840 	deleted
Step 80:	 variable 101 	deleted
Step 81:	 variable 101 	added
Step 82:	 variable 5836 	added
Step 83:	 variable 3658 	added
Step 84:	 variable 7739 	added
Step 85:	 variable 3977 	added
Step 86:	 variable 6060 	added
Step 87:	 variable 2022 	added
Step 88:	 variable 2220 	added
Step 89:	 variable 4343 	added
Step 90:	 variable 1803 	added
Step 91:	 variable 318 	added
Step 92:	 variable 2086 	added
Step 93:	 variable 8620 	added
Step 94:	 variable 2340 	added
Step 95:	 variable 4444 	added
Step 96:	 variable 2341 	added
Step 97:	 variable 3979 	added
Step 98:	 variable 1805 	added
Step 99:	 variable 518 	added
Step 100:	 variable 3554 	added
Step 101:	 variable 5435 	added
Step 102:	 variable 7939 	added
Step 103:	 variable 5226 	added
Step 104:	 variable 2652 	added
Step 105:	 variable 4123 	added
Step 106:	 variable 2059 	added
Step 107:	 variable 5920 	added
Step 108:	 variable 90 	added
Step 109:	 variable 9000 	added
Step 110:	 variable 3918 	added
Step 111:	 variable 1839 	added
Step 112:	 variable 4141 	added
Step 112:	 variable 4079 	deleted
Step 112:	 variable 7940 	deleted
Step 113:	 variable 4079 	added
Step 114:	 variable 8400 	added
Step 115:	 variable 84 	added
Step 116:	 variable 8039 	added
Step 117:	 variable 5600 	added
Step 118:	 variable 56 	added
Step 119:	 variable 1616 	added
Step 120:	 variable 7350 	added
Step 121:	 variable 9035 	added
Step 122:	 variable 3590 	added
Step 123:	 variable 7225 	added
Step 124:	 variable 320 	added
Step 125:	 variable 7016 	added
Step 126:	 variable 2003 	added
Step 127:	 variable 5073 	added
Step 128:	 variable 21 	added
Step 129:	 variable 2100 	added
Step 130:	 variable 4023 	added
Step 131:	 variable 6242 	added
Step 132:	 variable 5800 	added
Step 133:	 variable 4262 	added
Step 134:	 variable 58 	added
Step 135:	 variable 7980 	added
Step 136:	 variable 2572 	added
Step 137:	 variable 8079 	added
Step 138:	 variable 165 	added
Step 139:	 variable 7777 	added
Step 140:	 variable 310 	added
Step 141:	 variable 4643 	added
Step 142:	 variable 1003 	added
Step 143:	 variable 2085 	added
Step 144:	 variable 8520 	added
Step 145:	 variable 3980 	added
Step 146:	 variable 2457 	added
Step 147:	 variable 1619 	added
Step 148:	 variable 5936 	added
Step 149:	 variable 3659 	added
Step 150:	 variable 5724 	added
Step 150:	 variable 318 	deleted
Step 150:	 variable 3620 	deleted
> criteria(res, Y, sigma=.5)
Error in grid.Call.graphics(C_setviewport, vp, TRUE) : 
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
Calls: criteria ... push.vp.vpTree -> push.vp -> push.vp.viewport -> grid.Call.graphics
Execution halted