Running ‘testthat.R’ [14s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(macleish)
  Loading required package: etl
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > 
  > test_check("macleish")
  ── 3. Error: (unknown) (@test-macleish.R#6)  ───────────────────────────────────
  Internal error: Trace data is not square.
  Backtrace:
    1. testthat::test_check("macleish")
    2. testthat:::test_package_dir(...)
    3. testthat::test_dir(...)
    4. testthat:::test_files(...)
   10. base::lapply(...)
   11. testthat:::FUN(X[[i]], ...)
   17. testthat::source_file(...)
   18. testthat:::test_code(NULL, exprs, env)
   27. [ base::eval(...) ] with 1 more call
   29. testthat::test_that(...)
       ...
   40. testthat:::o_apply(...)
   41. base::lapply(objects, function(x) x[[method]](...))
   42. testthat:::FUN(X[[i]], ...)
   43. x[[method]](...)
   47. testthat:::failure_summary(result, self$n_fail)
   50. testthat:::format.expectation(x)
   51. testthat:::format_with_trace(x)
   53. rlang:::format.rlang_trace(...)
   54. rlang:::trace_format_branch(x, max_frames, dir, srcrefs)
   55. rlang:::branch_uncollapse_pipe(trace)
  
  trying URL 'http://download.massgis.digital.mass.gov/shapefiles/state/contours250k.zip'
  Content type 'application/x-zip-compressed' length 16452704 bytes (15.7 MB)
  ==================================================
  downloaded 15.7 MB
  
  Reading layer `CONTOURS250K_ARC' from data source `/tmp/RtmpNFxQWc/working_dir/Rtmpfd81OY/contours250k' using driver `ESRI Shapefile'
  Simple feature collection with 50395 features and 3 fields
  geometry type:  LINESTRING
  dimension:      XY
  bbox:           xmin: 33874.42 ymin: 778055.9 xmax: 325713.8 ymax: 959744.8
  CRS:            26986
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 9 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 3 ]
  1. Error: data integrity (@test-macleish.R#11) 
  2. Error: data integrity (@test-macleish.R#6) 
  3. Error: (unknown) (@test-macleish.R#6) 
  
  Error: testthat unit tests failed
  Execution halted