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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: hexa_area
> ### Title: Polygon to Hexagonal Grid Tessellation
> ### Aliases: hexa_area
> 
> ### ** Examples
> 
> library(sf)
Linking to GEOS 3.9.0, GDAL 3.2.2, PROJ 7.2.1
> ## Exemplary input Polygon with 2km x 2km:
> Poly <- sf::st_as_sf(sf::st_sfc(
+   sf::st_polygon(list(cbind(
+     c(4498482, 4498482, 4499991, 4499991, 4498482),
+     c(2668272, 2669343, 2669343, 2668272, 2668272)))), 
+   crs = 3035
+ ))
> HexGrid <- hexa_area(Poly, 100, TRUE)
Error in `[.default`(grid_polys, indx, ) : incorrect number of dimensions
Calls: hexa_area -> [ -> [.sfc -> st_sfc -> NextMethod
Execution halted
Running examples in ‘windfarmGA-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: hexa_area
> ### Title: Polygon to Hexagonal Grid Tessellation
> ### Aliases: hexa_area
> 
> ### ** Examples
> 
> library(sf)
Linking to GEOS 3.9.0, GDAL 3.2.2, PROJ 7.2.1
> ## Exemplary input Polygon with 2km x 2km:
> Poly <- sf::st_as_sf(sf::st_sfc(
+   sf::st_polygon(list(cbind(
+     c(4498482, 4498482, 4499991, 4499991, 4498482),
+     c(2668272, 2669343, 2669343, 2668272, 2668272)))), 
+   crs = 3035
+ ))
> HexGrid <- hexa_area(Poly, 100, TRUE)
Error in `[.default`(grid_polys, indx, ) : incorrect number of dimensions
Calls: hexa_area -> [ -> [.sfc -> st_sfc -> NextMethod
Execution halted
Running examples in ‘windfarmGA-Ex.R’ failed
The error most likely occurred in:

> ### Name: hexa_area
> ### Title: Polygon to Hexagonal Grid Tessellation
> ### Aliases: hexa_area
> 
> ### ** Examples
> 
> library(sf)
Linking to GEOS 3.8.1, GDAL 3.0.4, PROJ 6.3.2
> ## Exemplary input Polygon with 2km x 2km:
> Poly <- sf::st_as_sf(sf::st_sfc(
+   sf::st_polygon(list(cbind(
+     c(4498482, 4498482, 4499991, 4499991, 4498482),
+     c(2668272, 2669343, 2669343, 2668272, 2668272)))), 
+   crs = 3035
+ ))
> HexGrid <- hexa_area(Poly, 100, TRUE)
Error in `[.default`(grid_polys, indx, ) : incorrect number of dimensions
Calls: hexa_area -> [ -> [.sfc -> st_sfc -> NextMethod
Execution halted
Running examples in 'windfarmGA-Ex.R' failed
The error most likely occurred in:

> ### Name: hexa_area
> ### Title: Polygon to Hexagonal Grid Tessellation
> ### Aliases: hexa_area
> 
> ### ** Examples
> 
> library(sf)
Linking to GEOS 3.9.0, GDAL 3.2.1, PROJ 7.2.1
> ## Exemplary input Polygon with 2km x 2km:
> Poly <- sf::st_as_sf(sf::st_sfc(
+   sf::st_polygon(list(cbind(
+     c(4498482, 4498482, 4499991, 4499991, 4498482),
+     c(2668272, 2669343, 2669343, 2668272, 2668272)))), 
+   crs = 3035
+ ))
> HexGrid <- hexa_area(Poly, 100, TRUE)
Error in `[.default`(grid_polys, indx, ) : incorrect number of dimensions
Calls: hexa_area -> [ -> [.sfc -> st_sfc -> NextMethod
Execution halted
Running examples in 'windfarmGA-Ex.R' failed
The error most likely occurred in:

> ### Name: hexa_area
> ### Title: Polygon to Hexagonal Grid Tessellation
> ### Aliases: hexa_area
> 
> ### ** Examples
> 
> library(sf)
Linking to GEOS 3.6.2, GDAL 3.0.4, PROJ 7.0.0
> ## Exemplary input Polygon with 2km x 2km:
> Poly <- sf::st_as_sf(sf::st_sfc(
+   sf::st_polygon(list(cbind(
+     c(4498482, 4498482, 4499991, 4499991, 4498482),
+     c(2668272, 2669343, 2669343, 2668272, 2668272)))), 
+   crs = 3035
+ ))
> HexGrid <- hexa_area(Poly, 100, TRUE)
Error in `[.default`(grid_polys, indx, ) : incorrect number of dimensions
Calls: hexa_area -> [ -> [.sfc -> st_sfc -> NextMethod
Execution halted
Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Last 13 lines of output:
   18.                 +-s2:::new_s2_xptr(...)
   19.                 \-s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
  -- Error (test_wake.R:113:3): Test Wake Functions ------------------------------
  Error: incorrect number of dimensions
  Backtrace:
      x
   1. \-windfarmGA::grid_area(...) test_wake.R:113:2
   2.   +-grid_intersect[indx, ]
   3.   +-sf:::`[.sfc`(grid_intersect, indx, )
   4.   | \-sf::st_sfc(...)
   5.   \-base::NextMethod()
  
  [ FAIL 5 | WARN 0 | SKIP 5 | PASS 130 ]
  Error: Test failures
  Execution halted
Running examples in ‘windfarmGA-Ex.R’ failed
The error most likely occurred in:

> ### Name: hexa_area
> ### Title: Polygon to Hexagonal Grid Tessellation
> ### Aliases: hexa_area
> 
> ### ** Examples
> 
> library(sf)
Linking to GEOS 3.6.4, GDAL 2.2.4, PROJ 5.2.0
> ## Exemplary input Polygon with 2km x 2km:
> Poly <- sf::st_as_sf(sf::st_sfc(
+   sf::st_polygon(list(cbind(
+     c(4498482, 4498482, 4499991, 4499991, 4498482),
+     c(2668272, 2669343, 2669343, 2668272, 2668272)))), 
+   crs = 3035
+ ))
> HexGrid <- hexa_area(Poly, 100, TRUE)
Error in `[.default`(grid_polys, indx, ) : incorrect number of dimensions
Calls: hexa_area -> [ -> [.sfc -> st_sfc -> NextMethod
Execution halted