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"))
})

Try the sfdep package in your browser

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

sfdep documentation built on Sept. 13, 2024, 5:07 p.m.