Skip to content

Commit

Permalink
Add check for data.table installation (#263)
Browse files Browse the repository at this point in the history
Found in the other test_that() units here, missing from this 3rd
  • Loading branch information
MichaelChirico authored Jul 18, 2024
1 parent 56b1406 commit a014342
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test_checkDataTable.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ test_that("list columns", {
})

test_that("nrow for null data tables", {
skip_if_not_physically_installed("data.table")

# c.f. https://github.com/Rdatatable/data.table/issues/3149
M = matrix(1:3, nrow = 3)
M = M[, integer(0)]
Expand Down

0 comments on commit a014342

Please sign in to comment.