tests/testthat/_snaps/igo-search-states.md

invalid state values are dropped from vectorized searches

Code
  res <- igo_search_states(c("Spain", "aaa", "france"))
Message
  Unknown value for `state`: 'aaa'.

unknown states return NULL

Code
  res <- igo_search_states("aaaaa")
Message
  Unknown value for `state`: 'aaaaa'.
Condition
  Warning in `igo_search_states()`:
  No states were found for the supplied arguments.

empty state vectors return NULL with a warning

Code
  res <- igo_search_states(character())
Condition
  Warning in `igo_search_states()`:
  No states were found for the supplied arguments.

missing state values return NULL with a warning

Code
  res <- igo_search_states(NA)
Message
  Unknown value for `state`: 'NA'.
Condition
  Warning in `igo_search_states()`:
  No states were found for the supplied arguments.


Try the igoR package in your browser

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

igoR documentation built on Aug. 25, 2026, 5:08 p.m.