tests/testthat/test-spacetime-constructor_cli_update_patch.R

test_that("local_g_perm", {
  df_fp <- system.file("extdata", "bos-ecometric.csv", package = "sfdep")
  geo_fp <- system.file("extdata", "bos-ecometric.geojson", package = "sfdep")

  # read in data
  df <- read.csv(
    df_fp, colClasses = c("numeric", "character", "integer", "double", "Date")
  )

  geo <- sf::st_read(geo_fp)
  expect_error(spacetime(df, geo, ".region_id", "year"))
})
JosiahParry/sfdep documentation built on Sept. 7, 2024, 6:15 a.m.