tests/testthat/test-all.R

context("Load maps")
library(rmapdata); library(testthat); library(dplyr)

test_that("All maps load correctly", {

  mapx <- rmapdata::map(rmapdata::mapUS49, show = F, save=F)
  tVal1 <- length(mapx)
  testthat::expect_gt(tVal1,0)
})
JGCRI/rmapdata documentation built on Dec. 18, 2021, 12:25 a.m.