tests/testthat/test-layer_heatmap.R

context("heatmap")


test_that("empty data doesn't crash",{
	## issue 252
	m <- mapdeck()
	res <- mapdeck::add_heatmap(map = m, data = data.frame())
	expect_true( res$x$calls[[1]]$functions == "md_layer_clear" )
})

Try the mapdeck package in your browser

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

mapdeck documentation built on Nov. 29, 2025, 5:08 p.m.