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

# Extracted from test-lehdr.R:252

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

# test -------------------------------------------------------------------------
expect_error(
    grab_lodes(
      state      = "de",
      year       = 2023,
      version    = "LODES8",
      lodes_type = "wac"
    ),
    "outside the valid range"
  )

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.