tests/testthat/test-tbl_cube.R

context("tbl_cube")

test_that("tbl_cube works", {
  f <- system.file("extdata", "ifremer", "20171002.nc", package = "tidync")
  expect_s3_class(hyper_tbl_cube(f), "tbl_cube")
  hyper_tbl_cube(tidync(f)) %>% expect_s3_class("tbl_cube")
})

Try the tidync package in your browser

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

tidync documentation built on Oct. 29, 2022, 1:15 a.m.