tests/testthat/_problems/test-lehdr-705.R

# Extracted from test-lehdr.R:705

# setup ------------------------------------------------------------------------
library(testthat)
test_env <- simulate_test_env(package = "lehdr", path = "..")
attach(test_env, warn.conflicts = FALSE)

# test -------------------------------------------------------------------------
withr::local_options(list(lehdr_use_cache = TRUE))
od <- grab_lodes(
    state      = "de",
    year       = 2020,
    version    = "LODES8",
    lodes_type = "od",
    job_type   = "JT00",
    segment    = "SA01",
    state_part = "main",
    agg_geo    = "county"
  )
result <- compute_commute_stats(od, agg_geo = "county")

Try the lehdr package in your browser

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

lehdr documentation built on Nov. 2, 2026, 1:06 a.m.