Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [8s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(usmap)
  > 
  > test_check("usmap")
  [ FAIL 4 | WARN 0 | SKIP 2 | PASS 155 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-data.R:7:3', 'test-plot.R:64:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-fips.R:2:3'): all FIPS codes returned when no state specified ──
  fips() (`actual`) not equal to c(...) (`expected`).
  
  `actual[37:43]`:   "40" "41" "42" "72" "44" "45" "46"
  `expected[37:42]`: "40" "41" "42"      "44" "45" "46"
  ── Failure ('test-fips.R:48:3'): NA is returned for invalid state ──────────────
  is.na(fips(state = "Puerto Rico")) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-usmap.R:5:3'): state data frame is returned ──────────────────
  nrow(data) (`actual`) not equal to 51 (`expected`).
  
    `actual`: 52.0
  `expected`: 51.0
  ── Failure ('test-usmap.R:15:3'): county data frame is returned ────────────────
  nrow(data) (`actual`) not equal to 3144 (`expected`).
  
    `actual`: 3222.0
  `expected`: 3144.0
  
  [ FAIL 4 | WARN 0 | SKIP 2 | PASS 155 ]
  Deleting unused snapshots:
  • data/countypov.svg
  • data/statepop.svg
  • data/statepov.svg
  • plot/arizona-county-map-with-labels-and-fill.svg
  • plot/example-data-state-map-with-custom-linewidth.svg
  • plot/new-england-state-map-with-labels-excluding-maine.svg
  • plot/southeastern-states-map-with-labels.svg
  • plot/state-map-with-labels.svg
  • plot/state-map-with-major-rivers.svg
  Error: Test failures
  Execution halted