@@ -32,16 +32,16 @@ test_that("chunked tcrossprod matches standard tcrossprod", {
3232
3333 data(inbreeding )
3434 r_standard <- ped2com(inbreeding ,
35- component = " additive" , sparse = T ,
35+ component = " additive" , sparse = TRUE ,
3636 transpose_method = " tcrossprod"
3737 )
3838 r_chunked <- ped2com(inbreeding ,
39- component = " additive" , sparse = T ,
39+ component = " additive" , sparse = TRUE ,
4040 transpose_method = " chunked" , chunk_size = 3L , force_symmetric = FALSE
4141 )
4242
4343 r_chunked_sym <- ped2com(inbreeding ,
44- component = " additive" , sparse = T ,
44+ component = " additive" , sparse = TRUE ,
4545 transpose_method = " chunked" , chunk_size = 3L , force_symmetric = TRUE
4646 )
4747
@@ -86,11 +86,11 @@ test_that("chunked tcrossprod matches standard tcrossprod when also subsetted",
8686 keep <- as.character(inbreeding $ ID [5 : 10 ])
8787
8888 r_full <- ped2com(inbreeding ,
89- component = " additive" , sparse = T ,
89+ component = " additive" , sparse = TRUE ,
9090 keep_ids = NULL
9191 )
9292 r_sub <- ped2com(inbreeding ,
93- component = " additive" , sparse = T ,
93+ component = " additive" , sparse = TRUE ,
9494 keep_ids = keep
9595 )
9696
@@ -101,9 +101,9 @@ test_that("chunked tcrossprod matches standard tcrossprod when also subsetted",
101101 expect_equal(r_sub , r_full [keep , keep ], tolerance = 1e-10 )
102102
103103 r_chunked <- ped2com(inbreeding ,
104- component = " additive" , sparse = T ,
104+ component = " additive" , sparse = TRUE ,
105105 transpose_method = " chunked" , chunk_size = 3L ,
106- keep_ids = keep , force_symmetric = T
106+ keep_ids = keep , force_symmetric = TRUE
107107 )
108108
109109 expect_equal(as.matrix(r_sub ), as.matrix(r_chunked ), tolerance = 1e-10 )
0 commit comments