Closed brodieG closed 6 years ago
This happened between r74699 and r75061
Probably happened because of 75024:
$svn diff -r 75023:75024 library/base/R/dataframe.R
Index: library/base/R/dataframe.R
===================================================================
--- library/base/R/dataframe.R (revision 75023)
+++ library/base/R/dataframe.R (revision 75024)
@@ -1477,7 +1477,7 @@
print.data.frame <-
function(x, ..., digits = NULL, quote = FALSE, right = TRUE,
- row.names = TRUE)
+ row.names = TRUE, max = NULL)
{
n <- length(row.names(x))
if(length(x) == 0L) {
@@ -1489,12 +1489,20 @@
print.default(names(x), quote = FALSE)
cat(gettext("<0 rows> (or 0-length row.names)\n"))
} else {
+ if(is.null(max)) max <- getOption("max.print", 99999L)
## format.<*>() : avoiding picking up e.g. format.AsIs
- m <- as.matrix(format.data.frame(x, digits = digits, na.encode = FALSE))
+ omit <- (n0 <- max %/% length(x)) < n
+ m <- as.matrix(
+ format.data.frame(if(omit) x[seq_len(n0), , drop=FALSE] else x,
+ digits = digits, na.encode = FALSE))
if(!isTRUE(row.names))
dimnames(m)[[1L]] <-
- if(isFALSE(row.names)) rep.int("", n) else row.names
+ if(isFALSE(row.names)) rep.int("", if(omit) n0 else n)
+ else row.names
print(m, ..., quote = quote, right = right)
+ if(omit)
+ cat(" [ reached 'max' / getOption(\"max.print\") -- omitted",
+ n - n0, "rows ]\n")
}
invisible(x)
}
@@ -1644,7 +1652,7 @@
}
}
for(j in seq_along(cn)) {
- left <- if(!lscalar) e1[[j]] else e1
+ left <- if(!lscalar) e1[[j]] else e1
right <- if(!rscalar) e2[[j]] else e2
value[[j]] <- eval(f)
}
One of the builds failing: