tests/testthat/test-zzz-DataSet-scalar.R

context("h5-DataSet-scalar")

fname <- tempfile(fileext=".h5")

test_that("datatypes-Array-BugWithScalar",{
      fname <- system.file("test-scalar.h5", package = "hdf5r", mustWork = TRUE)
      f <- h5file(fname, "r")
      dset <- f[["/Analyses/Basecall_2D_000/BaseCalled_2D/Fastq"]]
      dat <- dset[]
      expect_identical(length(dat), 1L)
      expect_is(dat, "character")
      h5close(f)
    })

Try the hdf5r package in your browser

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

hdf5r documentation built on Sept. 12, 2024, 7:14 a.m.