Running ‘testthat.R’ [7s/8s]
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: "/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/flightplanning/extdata/exampleBoundary.shp", layer: "exampleBoundary"
  with 1 features
  It has 12 fields
  OGR data source with driver: ESRI Shapefile 
  Source: "/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/flightplanning/extdata/exampleBoundary.shp", layer: "exampleBoundary"
  with 1 features
  It has 12 fields
  OGR data source with driver: ESRI Shapefile 
  Source: "/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/flightplanning/extdata/exampleBoundary.shp", layer: "exampleBoundary"
  with 1 features
  It has 12 fields
  OGR data source with driver: ESRI Shapefile 
  Source: "/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/flightplanning/extdata/exampleBoundary.shp", layer: "exampleBoundary"
  with 1 features
  It has 12 fields
  OGR data source with driver: ESRI Shapefile 
  Source: "/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/flightplanning/extdata/exampleBoundary.shp", layer: "exampleBoundary"
  with 1 features
  It has 12 fields
  OGR data source with driver: ESRI Shapefile 
  Source: "/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/flightplanning/extdata/exampleBoundary.shp", layer: "exampleBoundary"
  with 1 features
  It has 12 fields
  OGR data source with driver: ESRI Shapefile 
  Source: "/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/flightplanning/extdata/exampleBoundary.shp", layer: "exampleBoundary"
  with 1 features
  It has 12 fields
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test.R:1:1): (code run outside of `test_that()`) ───────────────────
  Speed had to be lowered because frequency of photos would be too high
    New speed: 46.7279445300133km/h
  Backtrace:
   1. flightplanning::flight.parameters(height = 100) test.R:1:0
  ── Warning (test.R:27:3): Height calculation from GSD is correct ───────────────
  Speed lowered to 43.776km/h to round up photo interval time
  
  Backtrace:
   1. flightplanning::flight.parameters(...) test.R:27:2
  ── Warning (test.R:37:3): Flight parameters front overlap is the same as input ──
  Speed lowered to 32.4km/h to round up photo interval time
  
  Backtrace:
   1. flightplanning::flight.parameters(...) test.R:37:2
  ── Warning (test.R:53:3): Side overlap is correct ──────────────────────────────
  Speed lowered to 32.832km/h to round up photo interval time
  
  Backtrace:
   1. flightplanning::flight.parameters(...) test.R:53:2
  ── Warning (test.R:98:3): Photo time interval is rounded up and speed adjusted ──
  Speed lowered to 46.9028571428571km/h to round up photo interval time
  
  Backtrace:
   1. flightplanning::flight.parameters(...) test.R:98:2
  ── Warning (test.R:115:3): Ground height is properly calculated ────────────────
  Speed lowered to 46.9028571428571km/h to round up photo interval time
  
  Backtrace:
   1. flightplanning::flight.parameters(...) test.R:115:2
  ── Warning (test.R:159:3): Litchi plan outputs the csv file ────────────────────
  Using PROJ not WKT2 strings
  Backtrace:
   1. flightplanning::litchi.plan(exampleBoundary, outPath, params) test.R:159:2
   2. rgdal::rawTransform(...)
  ── Warning (test.R:179:3): Different starting points are working ───────────────
  Using PROJ not WKT2 strings
  Backtrace:
   1. flightplanning::litchi.plan(...) test.R:179:2
   2. rgdal::rawTransform(...)
  ── Warning (test.R:184:3): Different starting points are working ───────────────
  Using PROJ not WKT2 strings
  Backtrace:
   1. flightplanning::litchi.plan(...) test.R:184:2
   2. rgdal::rawTransform(...)
  ── Warning (test.R:189:3): Different starting points are working ───────────────
  Using PROJ not WKT2 strings
  Backtrace:
   1. flightplanning::litchi.plan(...) test.R:189:2
   2. rgdal::rawTransform(...)
  ── Warning (test.R:209:3): Different flight line angles are working ────────────
  Using PROJ not WKT2 strings
  Backtrace:
   1. flightplanning::litchi.plan(...) test.R:209:2
   2. rgdal::rawTransform(...)
  ── Warning (test.R:214:3): Different flight line angles are working ────────────
  Using PROJ not WKT2 strings
  Backtrace:
   1. flightplanning::litchi.plan(...) test.R:214:2
   2. rgdal::rawTransform(...)
  ── Warning (test.R:219:3): Different flight line angles are working ────────────
  Using PROJ not WKT2 strings
  Backtrace:
   1. flightplanning::litchi.plan(...) test.R:219:2
   2. rgdal::rawTransform(...)
  ── Warning (test.R:260:3): Break waypoints too far ─────────────────────────────
  Using PROJ not WKT2 strings
  Backtrace:
   1. flightplanning::litchi.plan(...) test.R:260:2
   2. rgdal::rawTransform(...)
  ── Warning (test.R:278:3): Break flight if exceeds max flight time ─────────────
  Using PROJ not WKT2 strings
  Backtrace:
   1. flightplanning::litchi.plan(...) test.R:278:2
   2. rgdal::rawTransform(...)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test.R:164:3): Litchi plan outputs the csv file ────────────────────
  file.exists(outPath) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 1 | WARN 15 | SKIP 0 | PASS 20 ]
  Error: Test failures
  Execution halted