tests/testthat/test-ggmap.R

context("ggmap")
source("util.R")

test_that("ggmap example works", {
  map <- getFakeMap()
  ggmap(map)
  expect_true(TRUE) # didn't stop: good!
})

test_that("ggmapplot example works", {
  map <- getFakeMap()
  expect_warning(
    # deprecated, and uses deprecated syntax
    # warns twice
    ggmapplot(map)
  )
  expect_true(TRUE) # didn't stop: good!
})
dkahle/ggmap documentation built on March 3, 2024, 8:19 a.m.