@@ -353,7 +353,7 @@ hmat2expr <- function(hmat, as_fractions = TRUE) {
353
353
ret <- lapply(seq_len(nrow(hmat )), function (j ) {
354
354
simplify_expr_sum(
355
355
as(lapply(seq_len(ncol(hmat )), function (i ) {
356
- num <- new(" expr_real" , num = hmat [j ,i ])
356
+ num <- new(" expr_real" , num = as.numeric( hmat [j ,i ]) )
357
357
if (as_fractions ) {
358
358
frac <- as.numeric(strsplit(attr(as.fractions(hmat [j ,i ]), " fracs" ), " /" , TRUE )[[1 ]])
359
359
if (length(frac ) == 2 && frac [2 ] < = 1000 ) {
@@ -1149,13 +1149,13 @@ minabsnz <- function(x) {
1149
1149
# ' cmat(h2)
1150
1150
# '
1151
1151
# ' # Filling the remaining degree of freedom retrieves the contrast
1152
- # ' h3 <- filler_contrasts(h2)
1152
+ # ' h3 <- filler_contrasts(h2, rescale = TRUE )
1153
1153
# ' cmat(h3)
1154
1154
# '
1155
- # ' stopifnot(all.equal(cmat(h3)[,3], cmat(h1)[,2]))
1155
+ # ' stopifnot(all.equal(cmat(h3)[,3], cmat(h1)[,2], check.attributes = FALSE ))
1156
1156
# '
1157
1157
# ' @export
1158
- filler_contrasts <- function (x , how.many = nlevels(x ), rescale = TRUE ) {
1158
+ filler_contrasts <- function (x , how.many = nlevels(x ), rescale = FALSE ) {
1159
1159
check_argument(x , " hypr" )
1160
1160
check_argument(how.many , " numeric" )
1161
1161
check_argument(rescale , " logical" )
0 commit comments