tests/testthat/test-coordinates.R

context("coordinates")

test_that("coordinatize works", {
  dt  <- readRDS("lagos_test_subset.rds")
  res <- coordinatize(dt$locus)

  expect_equal(nrow(res), 2)
  expect_s3_class(res, "sf")
})

Try the LAGOSNE package in your browser

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

LAGOSNE documentation built on July 9, 2023, 5:10 p.m.