@@ -12,50 +12,50 @@ expect_backend = function(b) {
1212 rn1 = head(rn , 1L )
1313 pk = b $ primary_key
1414
15- x = b $ data(rows = rn , cols = pk , data_format = " data.table " )
15+ x = b $ data(rows = rn , cols = pk )
1616 checkmate :: expect_data_table(x , ncols = 1L , nrows = n , col.names = " unique" )
1717 x = x [[1L ]]
1818 checkmate :: expect_integerish(x , len = n , unique = TRUE )
1919
20- x = b $ data(rows = rn , cols = setdiff(cn , pk )[1L ], data_format = " data.table " )
20+ x = b $ data(rows = rn , cols = setdiff(cn , pk )[1L ])
2121 checkmate :: expect_data_table(x , ncols = 1L , nrows = n , col.names = " unique" )
2222 x = x [[1L ]]
2323 checkmate :: expect_atomic_vector(x , len = n )
2424
2525 # extra cols are ignored
26- x = b $ data(rows = rn1 , cols = c(cn [1L ], " _not_existing_" ), data_format = " data.table " )
26+ x = b $ data(rows = rn1 , cols = c(cn [1L ], " _not_existing_" ))
2727 checkmate :: expect_data_table(x , nrows = length(rn1 ), ncols = 1L )
2828
2929 # zero cols matching
30- x = b $ data(rows = rn1 , cols = " _not_existing_" , data_format = " data.table " )
30+ x = b $ data(rows = rn1 , cols = " _not_existing_" )
3131 checkmate :: expect_data_table(x , nrows = 0L , ncols = 0L )
3232
3333 # extra rows are ignored
3434 query_rows = c(rn1 , if (is.integer(rn )) - 1L else " _not_existing_" )
35- x = b $ data(query_rows , cols = cn [1L ], data_format = " data.table " )
35+ x = b $ data(query_rows , cols = cn [1L ])
3636 checkmate :: expect_data_table(x , nrows = length(rn1 ), ncols = 1L )
3737
3838 # zero rows matching
3939 query_rows = if (is.integer(rn )) - 1L else " _not_existing_"
40- x = b $ data(rows = query_rows , cols = cn [1L ], data_format = " data.table " )
40+ x = b $ data(rows = query_rows , cols = cn [1L ])
4141 checkmate :: expect_data_table(x , nrows = 0L , ncols = 1L )
4242
4343 # rows are duplicated
44- x = b $ data(rows = rep(rn1 , 2L ), cols = b $ colnames , data_format = " data.table " )
44+ x = b $ data(rows = rep(rn1 , 2L ), cols = b $ colnames )
4545 checkmate :: expect_data_table(x , nrows = 2L * length(rn1 ), ncols = p )
4646
4747 # cols are returned in the right order
4848 j = rev(cn )
49- x = b $ data(rows = rn1 , cols = j , data_format = " data.table " )
49+ x = b $ data(rows = rn1 , cols = j )
5050 testthat :: expect_equal(j , colnames(x ))
5151
5252 # rows are returned in the right order
5353 i = sample(rn , min(n , 10L ))
54- x = b $ data(rows = i , cols = b $ primary_key , data_format = " data.table " )
54+ x = b $ data(rows = i , cols = b $ primary_key )
5555 testthat :: expect_equal(i , x [[1L ]])
5656
5757 # duplicated cols raise exception
58- testthat :: expect_error(b $ data(rows = rn1 , cols = rep(cn [1L ], 2L ), data_format = " data.table " ), " unique" )
58+ testthat :: expect_error(b $ data(rows = rn1 , cols = rep(cn [1L ], 2L )), " unique" )
5959
6060 # $head()
6161 checkmate :: expect_data_table(b $ head(.Machine $ integer.max ), nrows = n , ncols = p )
0 commit comments