tests/testthat/test-plot.R

nodes <- data.frame(
  id = LETTERS[1:2],
  lon = 1:2,
  lat = 1:2
)

links <- data.frame(from = "A", to = "B")

test_gn <- geonetwork(links, nodes, directed = FALSE)

test_that("Plot geonetwork object", {
  expect_error(plot(test_gn), NA)
  expect_error(plot(test_gn, add = TRUE), NA)
  expect_error(plot(test_gn, add = FALSE), NA)
})

Try the geonetwork package in your browser

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

geonetwork documentation built on Aug. 8, 2025, 7:31 p.m.