tests/testthat/test-cache.R

context("test-cache")

test_that("caching is sensible", {
  skip_on_cran()
  skip_if(is.null(get_api_key()))
  
  ## this hits zoom 13 and should give 16 tiles
  x <- get_tiles(cbind(0, 0), buffer = 5000, dimension = c(15, 16))
  suppressWarnings(f <- ceramic_tiles(zoom = 13))
  expect_s3_class(f, "tbl_df")
  expect_true(nrow(f) > 15)


})
hypertidy/ceramic documentation built on Feb. 28, 2024, 11:27 p.m.