Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > ## load dependencies
  > library(testthat)
  > library(flightplanning)
  > 
  > ## test package
  > test_check('flightplanning')
  OGR data source with driver: ESRI Shapefile 
  Source: "/data/gannet/ripley/R/packages/tests-devel/flightplanning.Rcheck/flightplanning/extdata/exampleBoundary.shp", layer: "exampleBoundary"
  with 1 features
  It has 12 fields
  OGR data source with driver: ESRI Shapefile 
  Source: "/data/gannet/ripley/R/packages/tests-devel/flightplanning.Rcheck/flightplanning/extdata/exampleBoundary.shp", layer: "exampleBoundary"
  with 1 features
  It has 12 fields
  OGR data source with driver: ESRI Shapefile 
  Source: "/data/gannet/ripley/R/packages/tests-devel/flightplanning.Rcheck/flightplanning/extdata/exampleBoundary.shp", layer: "exampleBoundary"
  with 1 features
  It has 12 fields
  OGR data source with driver: ESRI Shapefile 
  Source: "/data/gannet/ripley/R/packages/tests-devel/flightplanning.Rcheck/flightplanning/extdata/exampleBoundary.shp", layer: "exampleBoundary"
  with 1 features
  It has 12 fields
  OGR data source with driver: ESRI Shapefile 
  Source: "/data/gannet/ripley/R/packages/tests-devel/flightplanning.Rcheck/flightplanning/extdata/exampleBoundary.shp", layer: "exampleBoundary"
  with 1 features
  It has 12 fields
  OGR data source with driver: ESRI Shapefile 
  Source: "/data/gannet/ripley/R/packages/tests-devel/flightplanning.Rcheck/flightplanning/extdata/exampleBoundary.shp", layer: "exampleBoundary"
  with 1 features
  It has 12 fields
  OGR data source with driver: ESRI Shapefile 
  Source: "/data/gannet/ripley/R/packages/tests-devel/flightplanning.Rcheck/flightplanning/extdata/exampleBoundary.shp", layer: "exampleBoundary"
  with 1 features
  It has 12 fields
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test.R:159:3): Litchi plan outputs the csv file ──────────────────────
  Error in `curve[, 1:2]`: incorrect number of dimensions
  Backtrace:
      █
   1. └─flightplanning::litchi.plan(exampleBoundary, outPath, params) test.R:159:2
  ── Error (test.R:179:3): Different starting points are working ─────────────────
  Error in `curve[, 1:2]`: incorrect number of dimensions
  Backtrace:
      █
   1. └─flightplanning::litchi.plan(...) test.R:179:2
  ── Error (test.R:209:3): Different flight line angles are working ──────────────
  Error in `curve[, 1:2]`: incorrect number of dimensions
  Backtrace:
      █
   1. └─flightplanning::litchi.plan(...) test.R:209:2
  ── Error (test.R:260:3): Break waypoints too far ───────────────────────────────
  Error in `curve[, 1:2]`: incorrect number of dimensions
  Backtrace:
      █
   1. └─flightplanning::litchi.plan(...) test.R:260:2
  ── Error (test.R:278:3): Break flight if exceeds max flight time ───────────────
  Error in `curve[, 1:2]`: incorrect number of dimensions
  Backtrace:
      █
   1. └─flightplanning::litchi.plan(...) test.R:278:2
  
  [ FAIL 5 | WARN 6 | SKIP 0 | PASS 16 ]
  Error: Test failures
  Execution halted