Skip to content

Commit d4d80f1

Browse files
committed
.
1 parent aa54da6 commit d4d80f1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

inst/tests/tests.Rraw

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21684,10 +21684,10 @@ x = as.data.table(as.list(1:max_ppsize))
2168421684
test(2376, rbindlist(list(x)), x)
2168521685
rm(x, max_ppsize)
2168621686

21687-
#6663 Option to print the number of columns (ncol)
21688-
test(2377.1, capture.output(print(as.data.table(iris)))[1L], "ncol: 5", options=list(datatable.show.ncols=TRUE))
21689-
test(2377.2, any(grepl("^ncol: 5$", capture.output(print(setkey(as.data.table(iris), Sepal.Length))))), TRUE, options=list(datatable.show.ncols=TRUE))
21687+
#6663 Option to print the number of columns
21688+
test(2377.1, capture.output(print(as.data.table(iris)))[1L], "Number of columns: 5", options=list(datatable.show.ncols=TRUE))
21689+
test(2377.2, any(grepl("^Number of columns: 5$", capture.output(print(setkey(as.data.table(iris), Sepal.Length))))), TRUE, options=list(datatable.show.ncols=TRUE))
2169021690
test(2377.3, any(grepl("^[0-9]+ variables? not shown", capture.output(print(data.table(a=1:3, b=1:3, c=1:3, d=1:3, e=1:3), trunc.cols=TRUE)))), FALSE, options=list(width=20, datatable.show.ncols=TRUE))
21691-
test(2377.4, capture.output(print(as.data.table(iris), trunc.cols=TRUE))[1L], "ncol: 5, of which 5 are not shown: [Sepal.Length, Sepal.Width, Petal.Length, Petal.Width, Species]", options=list(width=10, datatable.show.ncols=TRUE))
21692-
test(2377.5, any(grepl("^ncol:", capture.output(print(as.data.table(iris))))), FALSE, options=list(datatable.show.ncols=FALSE))
21693-
test(2377.6, capture.output(print(as.data.table(iris), trunc.cols=TRUE, class=TRUE))[1L], "ncol: 5, of which 5 are not shown: [Sepal.Length <num>, Sepal.Width <num>, Petal.Length <num>, Petal.Width <num>, Species <fctr>]", options=list(width=10, datatable.show.ncols=TRUE))
21691+
test(2377.4, capture.output(print(as.data.table(iris), trunc.cols=TRUE))[1L], "Number of columns: 5, of which 5 are not shown: [Sepal.Length, Sepal.Width, Petal.Length, Petal.Width, Species]", options=list(width=10, datatable.show.ncols=TRUE))
21692+
test(2377.5, any(grepl("^Number of columns:", capture.output(print(as.data.table(iris))))), FALSE, options=list(datatable.show.ncols=FALSE))
21693+
test(2377.6, capture.output(print(as.data.table(iris), trunc.cols=TRUE, class=TRUE))[1L], "Number of columns: 5, of which 5 are not shown: [Sepal.Length <num>, Sepal.Width <num>, Petal.Length <num>, Petal.Width <num>, Species <fctr>]", options=list(width=10, datatable.show.ncols=TRUE))

0 commit comments

Comments
 (0)