context("rasterSource")
test_that("emissions with levels works!", {
g <- gridInfo("vertical.nc",z=T)
r_file <- paste0(system.file("extdata", package = "EmissV"),"/dmsp.tiff")
expect_equal(rasterSource(raster::raster(r_file),nlevels = 'all',g),
rasterSource(raster::raster(r_file),nlevels = 30 , g) )
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.