tests/testthat/test-subset_datacube.R

context("subset_datacube")

test_that("Testing the file subset_datacube.R", {

  rstack2 <- subset_datacube(r = b, from = "1993-01-01", to = "1993-01-01")
  expect_equal(raster::nlayers(rstack2), 1)

})

Try the caliver package in your browser

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

caliver documentation built on Feb. 19, 2021, 5:07 p.m.