Running ‘testthat.R’ [6s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(usmap)
  > 
  > test_check("usmap")
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 161 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-transform.R:16:3): data frame with AK and HI points is transformed ──
  Error in `usmap_transform(data)`: `maptools` must be installed to use `usmap_transform`.
           Use: install.packages("maptools") and try again.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(usmap_transform(data), result, tolerance = 1e-05) at test-transform.R:16:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─usmap::usmap_transform(data)
  ── Error (test-transform.R:32:3): data frame with AK points is transformed ─────
  Error in `usmap_transform(data)`: `maptools` must be installed to use `usmap_transform`.
           Use: install.packages("maptools") and try again.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(usmap_transform(data), result, tolerance = 1e-05) at test-transform.R:32:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─usmap::usmap_transform(data)
  ── Error (test-transform.R:48:3): data frame with HI points is transformed ─────
  Error in `usmap_transform(data)`: `maptools` must be installed to use `usmap_transform`.
           Use: install.packages("maptools") and try again.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(usmap_transform(data), result, tolerance = 1e-05) at test-transform.R:48:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─usmap::usmap_transform(data)
  ── Error (test-transform.R:64:3): data frame with no AK or HI points is transformed ──
  Error in `usmap_transform(data)`: `maptools` must be installed to use `usmap_transform`.
           Use: install.packages("maptools") and try again.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(usmap_transform(data), result, tolerance = 1e-05) at test-transform.R:64:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─usmap::usmap_transform(data)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 161 ]
  Error: Test failures
  Execution halted