Skip to content

Commit 3dffa1a

Browse files
drop isTRUE() elsewhere
1 parent cb187a9 commit 3dffa1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/print.data.table.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ print.data.table = function(x, topn=getOption("datatable.print.topn"),
133133
}
134134
if (printdots) {
135135
if (isFALSE(row.names)) {
136-
toprint = rbind(head(toprint, topn + isTRUE(class)), "---", tail(toprint, topn)) # 4083
136+
toprint = rbind(head(toprint, topn + class), "---", tail(toprint, topn)) # 4083
137137
} else {
138-
toprint = rbind(head(toprint, topn + isTRUE(class)), "---"="", tail(toprint, topn))
138+
toprint = rbind(head(toprint, topn + class), "---"="", tail(toprint, topn))
139139
}
140140
rownames(toprint) = format(rownames(toprint), justify="right")
141141
print_default(toprint)
@@ -147,7 +147,7 @@ print.data.table = function(x, topn=getOption("datatable.print.topn"),
147147
toprint = rbind(
148148
toprint,
149149
matrix(if (quote) old else colnames(toprint), nrow=1L), # see #97
150-
if (isTRUE(class)) matrix(if (trunc.cols) abbs[cols_to_print] else abbs, nrow=1L) # #6902
150+
if (class) matrix(if (trunc.cols) abbs[cols_to_print] else abbs, nrow=1L) # #6902
151151
)
152152
print_default(toprint)
153153
invisible(x)

0 commit comments

Comments
 (0)