Skip to content

Commit

Permalink
remaining issue is in {bigmemory}, not {bigstatsr}
Browse files Browse the repository at this point in the history
  • Loading branch information
privefl committed Sep 9, 2024
1 parent e7697d8 commit 5800d2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-bigmemory.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ test_that("Conversion to big.matrix works", {
for (t in c("raw", "integer", "float", "double")) {

X <- FBM(10, 10, type = t, init = 0)
if (t != "raw") X[1] <- NA
if (t != "raw") X[1, 1] <- NA

# Conversion works
expect_s4_class(X$bm.desc(), "big.matrix.descriptor")
expect_s4_class(X2 <- X$bm(), "big.matrix")
expect_identical(typeof(X2), typeof(X))
if (t != "float" && not_cran)
expect_equal(as.numeric(X2[1]), as.numeric(X[1]))
expect_equal(as.numeric(X2[1, 1]), as.numeric(X[1, 1]))

# Permissions
X$is_read_only <- TRUE
Expand Down

0 comments on commit 5800d2a

Please sign in to comment.