tests/testthat/test_GDSArray-method.R

test_that("gdsfile getter and setter works", {
    file <- system.file(package="SNPRelate", "extdata", "hapmap_geno.gds")
    ga <- GDSArray(file)
    expect_equal(gdsfile(ga), file)
    file1 <- SeqArray::seqExampleFileName("gds")
    gdsfile(ga) <- file1
    expect_true(validObject(ga))
})

Try the GDSArray package in your browser

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

GDSArray documentation built on April 2, 2021, 6 p.m.