Running examples in 'flightplanning-Ex.R' failed
The error most likely occurred in:

> ### Name: litchi.plan
> ### Title: Function to generate Litchi csv flight plan
> ### Aliases: litchi.plan
> 
> ### ** Examples
> 
> library(flightplanning)
> library(rgdal)
Loading required package: sp
Please note that rgdal will be retired by the end of 2023,
plan transition to sf/stars/terra functions using GDAL and PROJ
at your earliest convenience.

rgdal: version: 1.5-27, (SVN revision 1148)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.3.2, released 2021/09/01
Path to GDAL shared files: C:/r_packages/pkgcheck/lib/rgdal/gdal
GDAL binary built with GEOS: TRUE 
Loaded PROJ runtime: Rel. 7.2.1, January 1st, 2021, [PJ_VERSION: 721]
Path to PROJ shared files: C:/r_packages/pkgcheck/lib/rgdal/proj
PROJ CDN enabled: FALSE
Linking to sp version:1.4-6
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading sp or rgdal.
Overwritten PROJ_LIB was C:/r_packages/pkgcheck/lib/rgdal/proj
> 
> exampleBoundary = readOGR(
+                           system.file("extdata",
+                                       "exampleBoundary.shp",
+                                       package="flightplanning"
+                                      ),
+                           "exampleBoundary")
OGR data source with driver: ESRI Shapefile 
Source: "C:\r_packages\pkgcheck\CRAN\flightplanning\flightplanning.Rcheck\flightplanning\extdata\exampleBoundary.shp", layer: "exampleBoundary"
with 1 features
It has 12 fields
> outPath = tempfile(fileext=".csv")
> 
> flight.params = flight.parameters(
+   gsd = 4,
+   side.overlap = 0.8,
+   front.overlap = 0.8,
+   flight.speed.kmh = 54
+ )
Warning in flight.parameters(gsd = 4, side.overlap = 0.8, front.overlap = 0.8,  :
  Speed had to be lowered because frequency of photos would be too high
  New speed: 43.2km/h
> 
> litchi.plan(exampleBoundary,
+             outPath,
+             flight.params,
+             flight.lines.angle = -1,
+             max.waypoints.distance = 2000,
+             max.flight.time = 15)
Error in curve[, 1:2] : incorrect number of dimensions
Calls: litchi.plan
Execution halted