tests/testthat/test-graphics.R

test_that("graphics works", {

  # Load file
  m <- drt_import(
    system.file("Jegenstorf_i1000.RData", package = "drtplanr")
  )

  # Test energy plot
  expect_is(drt_plot(m), "ggplot")

  # Test station map
  expect_is(drt_map(m), "mapview")

})
munterfi/drtplanr documentation built on Dec. 21, 2021, 11:01 p.m.