tests/testthat/test_shared.R

context("shared option")

X1 <- big.matrix(10, 10)

opt.save <- options(bigmemory.default.shared=FALSE)
X2 <- big.matrix(10, 10)
options(opt.save)

test_that("Default shared parameter is read from options",{
  expect_true(is.shared(X1))
  expect_false(is.shared(X2))
})

Try the bigmemory package in your browser

Any scripts or data that you put into this service are public.

bigmemory documentation built on May 29, 2024, 12:18 p.m.