Running ‘testthat.R’ [7s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(usmap)
  > 
  > test_check("usmap")
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test-transform.R:16:3): data frame with AK and HI points is transformed ──
  Discarded datum unknown in CRS definition
  Backtrace:
    1. testthat::expect_equal(usmap_transform(data), result, tolerance = 1e-05) test-transform.R:16:2
    5. usmap:::usmap_transform.data.frame(data)
    7. usmap::usmap_crs()
    8. sp::CRS("+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0\n          +a=6370997 +b=6370997 +units=m +no_defs")
    9. rgdal::checkCRSArgs_ng(...)
   15. rgdal::showSRID(...)
  ── Warning (test-transform.R:16:3): data frame with AK and HI points is transformed ──
  CRS object has comment, which is lost in output
  Backtrace:
   1. testthat::expect_equal(usmap_transform(data), result, tolerance = 1e-05) test-transform.R:16:2
   5. usmap:::usmap_transform.data.frame(data)
   7. sp::proj4string(transformed)
  ── Warning (test-transform.R:16:3): data frame with AK and HI points is transformed ──
  Discarded datum Unknown based on Normal Sphere (r=6370997) ellipsoid in CRS definition
  Backtrace:
    1. testthat::expect_equal(usmap_transform(data), result, tolerance = 1e-05) test-transform.R:16:2
    5. usmap:::usmap_transform.data.frame(data)
    7. sp::`proj4string<-`(`*tmp*`, value = sp::proj4string(transformed))
    9. sp::CRS(value)
   10. rgdal::checkCRSArgs_ng(...)
   16. rgdal::showSRID(...)
  ── Warning (test-transform.R:16:3): data frame with AK and HI points is transformed ──
  CRS object has comment, which is lost in output
  Backtrace:
   1. testthat::expect_equal(usmap_transform(data), result, tolerance = 1e-05) test-transform.R:16:2
   5. usmap:::usmap_transform.data.frame(data)
   7. sp::proj4string(transformed)
  ── Warning (test-transform.R:16:3): data frame with AK and HI points is transformed ──
  Discarded datum Unknown based on Normal Sphere (r=6370997) ellipsoid in CRS definition
  Backtrace:
    1. testthat::expect_equal(usmap_transform(data), result, tolerance = 1e-05) test-transform.R:16:2
    5. usmap:::usmap_transform.data.frame(data)
    7. sp::`proj4string<-`(`*tmp*`, value = sp::proj4string(transformed))
    9. sp::CRS(value)
   10. rgdal::checkCRSArgs_ng(...)
   16. rgdal::showSRID(...)
  ── Warning (test-transform.R:32:3): data frame with AK points is transformed ───
  Discarded datum unknown in CRS definition
  Backtrace:
    1. testthat::expect_equal(usmap_transform(data), result, tolerance = 1e-05) test-transform.R:32:2
    5. usmap:::usmap_transform.data.frame(data)
    7. usmap::usmap_crs()
    8. sp::CRS("+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0\n          +a=6370997 +b=6370997 +units=m +no_defs")
    9. rgdal::checkCRSArgs_ng(...)
   15. rgdal::showSRID(...)
  ── Warning (test-transform.R:32:3): data frame with AK points is transformed ───
  CRS object has comment, which is lost in output
  Backtrace:
   1. testthat::expect_equal(usmap_transform(data), result, tolerance = 1e-05) test-transform.R:32:2
   5. usmap:::usmap_transform.data.frame(data)
   7. sp::proj4string(transformed)
  ── Warning (test-transform.R:32:3): data frame with AK points is transformed ───
  Discarded datum Unknown based on Normal Sphere (r=6370997) ellipsoid in CRS definition
  Backtrace:
    1. testthat::expect_equal(usmap_transform(data), result, tolerance = 1e-05) test-transform.R:32:2
    5. usmap:::usmap_transform.data.frame(data)
    7. sp::`proj4string<-`(`*tmp*`, value = sp::proj4string(transformed))
    9. sp::CRS(value)
   10. rgdal::checkCRSArgs_ng(...)
   16. rgdal::showSRID(...)
  ── Warning (test-transform.R:48:3): data frame with HI points is transformed ───
  Discarded datum unknown in CRS definition
  Backtrace:
    1. testthat::expect_equal(usmap_transform(data), result, tolerance = 1e-05) test-transform.R:48:2
    5. usmap:::usmap_transform.data.frame(data)
    7. usmap::usmap_crs()
    8. sp::CRS("+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0\n          +a=6370997 +b=6370997 +units=m +no_defs")
    9. rgdal::checkCRSArgs_ng(...)
   15. rgdal::showSRID(...)
  ── Warning (test-transform.R:48:3): data frame with HI points is transformed ───
  CRS object has comment, which is lost in output
  Backtrace:
   1. testthat::expect_equal(usmap_transform(data), result, tolerance = 1e-05) test-transform.R:48:2
   5. usmap:::usmap_transform.data.frame(data)
   7. sp::proj4string(transformed)
  ── Warning (test-transform.R:48:3): data frame with HI points is transformed ───
  Discarded datum Unknown based on Normal Sphere (r=6370997) ellipsoid in CRS definition
  Backtrace:
    1. testthat::expect_equal(usmap_transform(data), result, tolerance = 1e-05) test-transform.R:48:2
    5. usmap:::usmap_transform.data.frame(data)
    7. sp::`proj4string<-`(`*tmp*`, value = sp::proj4string(transformed))
    9. sp::CRS(value)
   10. rgdal::checkCRSArgs_ng(...)
   16. rgdal::showSRID(...)
  ── Warning (test-transform.R:64:3): data frame with no AK or HI points is transformed ──
  Discarded datum unknown in CRS definition
  Backtrace:
    1. testthat::expect_equal(usmap_transform(data), result, tolerance = 1e-05) test-transform.R:64:2
    5. usmap:::usmap_transform.data.frame(data)
    7. usmap::usmap_crs()
    8. sp::CRS("+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0\n          +a=6370997 +b=6370997 +units=m +no_defs")
    9. rgdal::checkCRSArgs_ng(...)
   15. rgdal::showSRID(...)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-plot.R:120:3): singular regions can be used ───────────────────
  plot_usmap(regions = "states")$layers not equal to plot_usmap(regions = "state")$layers.
  Component 1: Component 11: Component 1: target is not list-like
  Component 2: Component 11: Component 1: target is not list-like
  ── Failure (test-plot.R:122:3): singular regions can be used ───────────────────
  plot_usmap(regions = "counties")$layers not equal to plot_usmap(regions = "county")$layers.
  Component 1: Component 11: Component 1: target is not list-like
  Component 2: Component 11: Component 1: target is not list-like
  
  [ FAIL 2 | WARN 12 | SKIP 0 | PASS 155 ]
  Error: Test failures
  Execution halted