Last updated on 2021-06-28 15:51:23 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 3.0.0 | 35.74 | 146.02 | 181.76 | ERROR | |
r-devel-linux-x86_64-debian-gcc | 3.0.0 | 24.54 | 108.50 | 133.04 | ERROR | |
r-devel-linux-x86_64-fedora-clang | 3.0.0 | 225.95 | ERROR | |||
r-devel-linux-x86_64-fedora-gcc | 3.0.0 | 211.35 | ERROR | |||
r-devel-windows-x86_64 | 3.0.0 | 47.00 | 140.00 | 187.00 | ERROR | |
r-devel-windows-x86_64-gcc10-UCRT | 3.0.0 | ERROR | ||||
r-patched-linux-x86_64 | 3.0.0 | 32.12 | 137.56 | 169.68 | ERROR | |
r-patched-solaris-x86 | 3.0.0 | 267.90 | ERROR | |||
r-release-linux-x86_64 | 3.0.0 | 30.78 | 135.75 | 166.53 | ERROR | |
r-release-macos-arm64 | 3.0.0 | OK | ||||
r-release-macos-x86_64 | 3.0.0 | OK | ||||
r-release-windows-ix86+x86_64 | 3.0.0 | 83.00 | 227.00 | 310.00 | ERROR | |
r-oldrel-macos-x86_64 | 3.0.0 | OK | ||||
r-oldrel-windows-ix86+x86_64 | 3.0.0 | 73.00 | 209.00 | 282.00 | ERROR |
Version: 3.0.0
Check: examples
Result: ERROR
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
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64
Version: 3.0.0
Check: tests
Result: ERROR
Running 'testthat.R' [15s/21s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(windfarmGA)
> library(rgdal)
Loading required package: sp
rgdal: version: 1.5-23, (SVN revision 1121)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.2.2, released 2021/03/05
Path to GDAL shared files: /usr/share/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: /home/hornik/.local/share/proj:/usr/share/proj
PROJ CDN enabled: FALSE
Linking to sp version:1.4-5
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.
> library(rgeos)
rgeos version: 0.5-5, (SVN revision 640)
GEOS runtime version: 3.9.0-CAPI-1.16.2
Linking to sp version: 1.4-5
Polygon checking: TRUE
>
> test_check("windfarmGA")
[1] "ABBREV" "ADM0_A3" "ADM0_DIF" "ADMIN" "ADMIN.1"
[6] "AVOIDname" "AVOIDnumeric" "FIPS_10_" "FeatureCla" "GBD"
[11] "GDP_MD_EST" "GEO3" "GEO3major" "GEOUNIT" "GEOU_DIF"
[16] "GLOCAF" "GU_A3" "IMAGE24" "ISO3" "ISO3.1"
[21] "ISO_A2" "ISO_A3" "ISO_N3" "LAT" "LDC"
[26] "LEVEL" "LLDC" "LON" "LabelRank" "MAP_COLOR"
[31] "NAME" "NAME_FORMA" "NAME_SORT" "POP_EST" "POSTAL"
[36] "REGION" "SID" "SOVEREIGNT" "SOV_A3" "SRES"
[41] "SRESmajor" "SUBUNIT" "SU_A3" "SU_DIF" "ScaleRank"
[46] "Stern" "TERR_" "TYPE" "continent"
Enter an ISO3 code: trying URL 'https://biogeo.ucdavis.edu/data/diva/msk_alt/AUT_msk_alt.zip'
Content type 'application/zip' length 216165 bytes (211 KB)
==================================================
downloaded 211 KB
== Skipped tests ===============================================================
* On CRAN (4)
== Failed tests ================================================================
-- Error (test_ga_func.R:46:3): Test Genetic Algorithm Function ----------------
Error: incorrect number of dimensions
Backtrace:
x
1. \-windfarmGA::grid_area(shape = Polygon1, size = 200, prop = 1) test_ga_func.R:46:2
2. +-grid_intersect[indx, ]
3. +-sf:::`[.sfc`(grid_intersect, indx, )
4. | \-sf::st_sfc(...)
5. \-base::NextMethod()
-- Error (test_parallel.R:19:3): Test Parallelisation --------------------------
Error: incorrect number of dimensions
Backtrace:
x
1. \-windfarmGA::genetic_algorithm(...) test_parallel.R:19:2
2. \-windfarmGA::grid_area(Polygon1, resol2, Proportionality)
3. +-grid_intersect[indx, ]
4. +-sf:::`[.sfc`(grid_intersect, indx, )
5. | \-sf::st_sfc(...)
6. \-base::NextMethod()
-- Error (test_random_search.R:14:3): Test Random Search Functions -------------
Error: incorrect number of dimensions
Backtrace:
x
1. \-windfarmGA::random_search(...) test_random_search.R:14:2
2. \-windfarmGA::grid_area(shape = Polygon1, size = resolu, prop = propu)
3. +-grid_intersect[indx, ]
4. +-sf:::`[.sfc`(grid_intersect, indx, )
5. | \-sf::st_sfc(...)
6. \-base::NextMethod()
-- Error (test_user_input.R:22:3): User Input ----------------------------------
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
x
1. \-windfarmGA::getISO3(pp = points, crs_pp = 3035, col = "?") test_user_input.R:22:2
2. +-base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. | \-base::withCallingHandlers(...)
4. +-sf::st_intersection(pp, st_as_sf(countriesSP))
5. \-sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. +-sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. \-sf:::geos_op2_geom("intersection", x, y)
8. +-base::structure(...)
9. +-base::unlist(...)
10. \-base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. \-s2:::FUN(X[[i]], ...)
12. +-s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. +-s2::as_s2_geography(y)
14. \-sf:::as_s2_geography.sfc(y)
15. \-sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. +-s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. \-s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
18. +-s2:::new_s2_xptr(...)
19. \-s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
-- Error (test_visibility.R:36:3): Test Viewshed Functions ---------------------
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
x
1. \-windfarmGA::getISO3(pp = points, crs_pp = 3035) test_visibility.R:36:2
2. +-base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. | \-base::withCallingHandlers(...)
4. +-sf::st_intersection(pp, st_as_sf(countriesSP))
5. \-sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. +-sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. \-sf:::geos_op2_geom("intersection", x, y)
8. +-base::structure(...)
9. +-base::unlist(...)
10. \-base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. \-s2:::FUN(X[[i]], ...)
12. +-s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. +-s2::as_s2_geography(y)
14. \-sf:::as_s2_geography.sfc(y)
15. \-sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. +-s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. \-s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
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 6 | WARN 0 | SKIP 4 | PASS 130 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 3.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [12s/31s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(windfarmGA)
> library(rgdal)
Loading required package: sp
rgdal: version: 1.5-23, (SVN revision 1121)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.2.2, released 2021/03/05
Path to GDAL shared files: /usr/share/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: /home/hornik/.local/share/proj:/usr/share/proj
PROJ CDN enabled: FALSE
Linking to sp version:1.4-5
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.
> library(rgeos)
rgeos version: 0.5-5, (SVN revision 640)
GEOS runtime version: 3.9.0-CAPI-1.16.2
Linking to sp version: 1.4-5
Polygon checking: TRUE
>
> test_check("windfarmGA")
[1] "ABBREV" "ADM0_A3" "ADM0_DIF" "ADMIN" "ADMIN.1"
[6] "AVOIDname" "AVOIDnumeric" "FIPS_10_" "FeatureCla" "GBD"
[11] "GDP_MD_EST" "GEO3" "GEO3major" "GEOUNIT" "GEOU_DIF"
[16] "GLOCAF" "GU_A3" "IMAGE24" "ISO3" "ISO3.1"
[21] "ISO_A2" "ISO_A3" "ISO_N3" "LAT" "LDC"
[26] "LEVEL" "LLDC" "LON" "LabelRank" "MAP_COLOR"
[31] "NAME" "NAME_FORMA" "NAME_SORT" "POP_EST" "POSTAL"
[36] "REGION" "SID" "SOVEREIGNT" "SOV_A3" "SRES"
[41] "SRESmajor" "SUBUNIT" "SU_A3" "SU_DIF" "ScaleRank"
[46] "Stern" "TERR_" "TYPE" "continent"
Enter an ISO3 code: trying URL 'https://biogeo.ucdavis.edu/data/diva/msk_alt/AUT_msk_alt.zip'
Content type 'application/zip' length 216165 bytes (211 KB)
==================================================
downloaded 211 KB
══ Skipped tests ═══════════════════════════════════════════════════════════════
• On CRAN (4)
══ Failed tests ════════════════════════════════════════════════════════════════
── Error (test_ga_func.R:46:3): Test Genetic Algorithm Function ────────────────
Error: incorrect number of dimensions
Backtrace:
█
1. └─windfarmGA::grid_area(shape = Polygon1, size = 200, prop = 1) test_ga_func.R:46:2
2. ├─grid_intersect[indx, ]
3. ├─sf:::`[.sfc`(grid_intersect, indx, )
4. │ └─sf::st_sfc(...)
5. └─base::NextMethod()
── Error (test_parallel.R:19:3): Test Parallelisation ──────────────────────────
Error: incorrect number of dimensions
Backtrace:
█
1. └─windfarmGA::genetic_algorithm(...) test_parallel.R:19:2
2. └─windfarmGA::grid_area(Polygon1, resol2, Proportionality)
3. ├─grid_intersect[indx, ]
4. ├─sf:::`[.sfc`(grid_intersect, indx, )
5. │ └─sf::st_sfc(...)
6. └─base::NextMethod()
── Error (test_random_search.R:14:3): Test Random Search Functions ─────────────
Error: incorrect number of dimensions
Backtrace:
█
1. └─windfarmGA::random_search(...) test_random_search.R:14:2
2. └─windfarmGA::grid_area(shape = Polygon1, size = resolu, prop = propu)
3. ├─grid_intersect[indx, ]
4. ├─sf:::`[.sfc`(grid_intersect, indx, )
5. │ └─sf::st_sfc(...)
6. └─base::NextMethod()
── Error (test_user_input.R:22:3): User Input ──────────────────────────────────
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
█
1. └─windfarmGA::getISO3(pp = points, crs_pp = 3035, col = "?") test_user_input.R:22:2
2. ├─base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. │ └─base::withCallingHandlers(...)
4. ├─sf::st_intersection(pp, st_as_sf(countriesSP))
5. └─sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. ├─sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. └─sf:::geos_op2_geom("intersection", x, y)
8. ├─base::structure(...)
9. ├─base::unlist(...)
10. └─base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. └─s2:::FUN(X[[i]], ...)
12. ├─s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. ├─s2::as_s2_geography(y)
14. └─sf:::as_s2_geography.sfc(y)
15. └─sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
18. ├─s2:::new_s2_xptr(...)
19. └─s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
── Error (test_visibility.R:36:3): Test Viewshed Functions ─────────────────────
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
█
1. └─windfarmGA::getISO3(pp = points, crs_pp = 3035) test_visibility.R:36:2
2. ├─base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. │ └─base::withCallingHandlers(...)
4. ├─sf::st_intersection(pp, st_as_sf(countriesSP))
5. └─sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. ├─sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. └─sf:::geos_op2_geom("intersection", x, y)
8. ├─base::structure(...)
9. ├─base::unlist(...)
10. └─base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. └─s2:::FUN(X[[i]], ...)
12. ├─s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. ├─s2::as_s2_geography(y)
14. └─sf:::as_s2_geography.sfc(y)
15. └─sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
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:
█
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 6 | WARN 0 | SKIP 4 | PASS 130 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 3.0.0
Check: examples
Result: ERROR
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
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 3.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [17s/25s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(windfarmGA)
> library(rgdal)
Loading required package: sp
rgdal: version: 1.5-23, (SVN revision 1121)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.0.4, released 2020/01/28
Path to GDAL shared files: /usr/share/gdal
GDAL binary built with GEOS: TRUE
Loaded PROJ runtime: Rel. 6.3.2, May 1st, 2020, [PJ_VERSION: 632]
Path to PROJ shared files: /usr/share/proj
Linking to sp version:1.4-5
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.
> library(rgeos)
rgeos version: 0.5-5, (SVN revision 640)
GEOS runtime version: 3.8.1-CAPI-1.13.3
Linking to sp version: 1.4-5
Polygon checking: TRUE
>
> test_check("windfarmGA")
[1] "ABBREV" "ADM0_A3" "ADM0_DIF" "ADMIN" "ADMIN.1"
[6] "AVOIDname" "AVOIDnumeric" "FIPS_10_" "FeatureCla" "GBD"
[11] "GDP_MD_EST" "GEO3" "GEO3major" "GEOUNIT" "GEOU_DIF"
[16] "GLOCAF" "GU_A3" "IMAGE24" "ISO3" "ISO3.1"
[21] "ISO_A2" "ISO_A3" "ISO_N3" "LAT" "LDC"
[26] "LEVEL" "LLDC" "LON" "LabelRank" "MAP_COLOR"
[31] "NAME" "NAME_FORMA" "NAME_SORT" "POP_EST" "POSTAL"
[36] "REGION" "SID" "SOVEREIGNT" "SOV_A3" "SRES"
[41] "SRESmajor" "SUBUNIT" "SU_A3" "SU_DIF" "ScaleRank"
[46] "Stern" "TERR_" "TYPE" "continent"
Enter an ISO3 code: trying URL 'https://biogeo.ucdavis.edu/data/diva/msk_alt/AUT_msk_alt.zip'
Content type 'application/zip' length 216165 bytes (211 KB)
==================================================
downloaded 211 KB
══ Skipped tests ═══════════════════════════════════════════════════════════════
• On CRAN (4)
══ Failed tests ════════════════════════════════════════════════════════════════
── Error (test_ga_func.R:46:3): Test Genetic Algorithm Function ────────────────
Error: incorrect number of dimensions
Backtrace:
█
1. └─windfarmGA::grid_area(shape = Polygon1, size = 200, prop = 1) test_ga_func.R:46:2
2. ├─grid_intersect[indx, ]
3. ├─sf:::`[.sfc`(grid_intersect, indx, )
4. │ └─sf::st_sfc(...)
5. └─base::NextMethod()
── Error (test_parallel.R:19:3): Test Parallelisation ──────────────────────────
Error: incorrect number of dimensions
Backtrace:
█
1. └─windfarmGA::genetic_algorithm(...) test_parallel.R:19:2
2. └─windfarmGA::grid_area(Polygon1, resol2, Proportionality)
3. ├─grid_intersect[indx, ]
4. ├─sf:::`[.sfc`(grid_intersect, indx, )
5. │ └─sf::st_sfc(...)
6. └─base::NextMethod()
── Error (test_random_search.R:14:3): Test Random Search Functions ─────────────
Error: incorrect number of dimensions
Backtrace:
█
1. └─windfarmGA::random_search(...) test_random_search.R:14:2
2. └─windfarmGA::grid_area(shape = Polygon1, size = resolu, prop = propu)
3. ├─grid_intersect[indx, ]
4. ├─sf:::`[.sfc`(grid_intersect, indx, )
5. │ └─sf::st_sfc(...)
6. └─base::NextMethod()
── Error (test_user_input.R:22:3): User Input ──────────────────────────────────
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
█
1. └─windfarmGA::getISO3(pp = points, crs_pp = 3035, col = "?") test_user_input.R:22:2
2. ├─base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. │ └─base::withCallingHandlers(...)
4. ├─sf::st_intersection(pp, st_as_sf(countriesSP))
5. └─sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. ├─sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. └─sf:::geos_op2_geom("intersection", x, y)
8. ├─base::structure(...)
9. ├─base::unlist(...)
10. └─base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. └─s2:::FUN(X[[i]], ...)
12. ├─s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. ├─s2::as_s2_geography(y)
14. └─sf:::as_s2_geography.sfc(y)
15. └─sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
18. ├─s2:::new_s2_xptr(...)
19. └─s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
── Error (test_visibility.R:36:3): Test Viewshed Functions ─────────────────────
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
█
1. └─windfarmGA::getISO3(pp = points, crs_pp = 3035) test_visibility.R:36:2
2. ├─base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. │ └─base::withCallingHandlers(...)
4. ├─sf::st_intersection(pp, st_as_sf(countriesSP))
5. └─sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. ├─sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. └─sf:::geos_op2_geom("intersection", x, y)
8. ├─base::structure(...)
9. ├─base::unlist(...)
10. └─base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. └─s2:::FUN(X[[i]], ...)
12. ├─s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. ├─s2::as_s2_geography(y)
14. └─sf:::as_s2_geography.sfc(y)
15. └─sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
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:
█
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 6 | WARN 0 | SKIP 4 | PASS 130 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 3.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [17s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(windfarmGA)
> library(rgdal)
Loading required package: sp
rgdal: version: 1.5-23, (SVN revision 1121)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.0.4, released 2020/01/28
Path to GDAL shared files: /usr/share/gdal
GDAL binary built with GEOS: TRUE
Loaded PROJ runtime: Rel. 6.3.2, May 1st, 2020, [PJ_VERSION: 632]
Path to PROJ shared files: /usr/share/proj
Linking to sp version:1.4-5
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.
> library(rgeos)
rgeos version: 0.5-5, (SVN revision 640)
GEOS runtime version: 3.8.1-CAPI-1.13.3
Linking to sp version: 1.4-5
Polygon checking: TRUE
>
> test_check("windfarmGA")
[1] "ABBREV" "ADM0_A3" "ADM0_DIF" "ADMIN" "ADMIN.1"
[6] "AVOIDname" "AVOIDnumeric" "FIPS_10_" "FeatureCla" "GBD"
[11] "GDP_MD_EST" "GEO3" "GEO3major" "GEOUNIT" "GEOU_DIF"
[16] "GLOCAF" "GU_A3" "IMAGE24" "ISO3" "ISO3.1"
[21] "ISO_A2" "ISO_A3" "ISO_N3" "LAT" "LDC"
[26] "LEVEL" "LLDC" "LON" "LabelRank" "MAP_COLOR"
[31] "NAME" "NAME_FORMA" "NAME_SORT" "POP_EST" "POSTAL"
[36] "REGION" "SID" "SOVEREIGNT" "SOV_A3" "SRES"
[41] "SRESmajor" "SUBUNIT" "SU_A3" "SU_DIF" "ScaleRank"
[46] "Stern" "TERR_" "TYPE" "continent"
Enter an ISO3 code: trying URL 'https://biogeo.ucdavis.edu/data/diva/msk_alt/AUT_msk_alt.zip'
Content type 'application/zip' length 216165 bytes (211 KB)
==================================================
downloaded 211 KB
══ Skipped tests ═══════════════════════════════════════════════════════════════
• On CRAN (4)
══ Failed tests ════════════════════════════════════════════════════════════════
── Error (test_ga_func.R:46:3): Test Genetic Algorithm Function ────────────────
Error: incorrect number of dimensions
Backtrace:
█
1. └─windfarmGA::grid_area(shape = Polygon1, size = 200, prop = 1) test_ga_func.R:46:2
2. ├─grid_intersect[indx, ]
3. ├─sf:::`[.sfc`(grid_intersect, indx, )
4. │ └─sf::st_sfc(...)
5. └─base::NextMethod()
── Error (test_parallel.R:19:3): Test Parallelisation ──────────────────────────
Error: incorrect number of dimensions
Backtrace:
█
1. └─windfarmGA::genetic_algorithm(...) test_parallel.R:19:2
2. └─windfarmGA::grid_area(Polygon1, resol2, Proportionality)
3. ├─grid_intersect[indx, ]
4. ├─sf:::`[.sfc`(grid_intersect, indx, )
5. │ └─sf::st_sfc(...)
6. └─base::NextMethod()
── Error (test_random_search.R:14:3): Test Random Search Functions ─────────────
Error: incorrect number of dimensions
Backtrace:
█
1. └─windfarmGA::random_search(...) test_random_search.R:14:2
2. └─windfarmGA::grid_area(shape = Polygon1, size = resolu, prop = propu)
3. ├─grid_intersect[indx, ]
4. ├─sf:::`[.sfc`(grid_intersect, indx, )
5. │ └─sf::st_sfc(...)
6. └─base::NextMethod()
── Error (test_user_input.R:22:3): User Input ──────────────────────────────────
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
█
1. └─windfarmGA::getISO3(pp = points, crs_pp = 3035, col = "?") test_user_input.R:22:2
2. ├─base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. │ └─base::withCallingHandlers(...)
4. ├─sf::st_intersection(pp, st_as_sf(countriesSP))
5. └─sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. ├─sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. └─sf:::geos_op2_geom("intersection", x, y)
8. ├─base::structure(...)
9. ├─base::unlist(...)
10. └─base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. └─s2:::FUN(X[[i]], ...)
12. ├─s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. ├─s2::as_s2_geography(y)
14. └─sf:::as_s2_geography.sfc(y)
15. └─sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
18. ├─s2:::new_s2_xptr(...)
19. └─s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
── Error (test_visibility.R:36:3): Test Viewshed Functions ─────────────────────
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
█
1. └─windfarmGA::getISO3(pp = points, crs_pp = 3035) test_visibility.R:36:2
2. ├─base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. │ └─base::withCallingHandlers(...)
4. ├─sf::st_intersection(pp, st_as_sf(countriesSP))
5. └─sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. ├─sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. └─sf:::geos_op2_geom("intersection", x, y)
8. ├─base::structure(...)
9. ├─base::unlist(...)
10. └─base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. └─s2:::FUN(X[[i]], ...)
12. ├─s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. ├─s2::as_s2_geography(y)
14. └─sf:::as_s2_geography.sfc(y)
15. └─sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
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:
█
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 6 | WARN 0 | SKIP 4 | PASS 130 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 3.0.0
Check: examples
Result: ERROR
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
Flavor: r-devel-windows-x86_64
Version: 3.0.0
Check: tests
Result: ERROR
Running 'testthat.R' [18s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(windfarmGA)
> library(rgdal)
Loading required package: sp
rgdal: version: 1.5-23, (SVN revision 1121)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.2.1, released 2020/12/29
Path to GDAL shared files: D:/temp/Rtmpkv722P/RLIBS_295dc4f0c7464/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: D:/temp/Rtmpkv722P/RLIBS_295dc4f0c7464/rgdal/proj
PROJ CDN enabled: FALSE
Linking to sp version:1.4-5
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.
Overwritten PROJ_LIB was D:/temp/Rtmpkv722P/RLIBS_295dc4f0c7464/rgdal/proj
> library(rgeos)
rgeos version: 0.5-5, (SVN revision 640)
GEOS runtime version: 3.8.0-CAPI-1.13.1
Linking to sp version: 1.4-5
Polygon checking: TRUE
>
> test_check("windfarmGA")
[1] "ABBREV" "ADM0_A3" "ADM0_DIF" "ADMIN" "ADMIN.1"
[6] "AVOIDname" "AVOIDnumeric" "FIPS_10_" "FeatureCla" "GBD"
[11] "GDP_MD_EST" "GEO3" "GEO3major" "GEOUNIT" "GEOU_DIF"
[16] "GLOCAF" "GU_A3" "IMAGE24" "ISO3" "ISO3.1"
[21] "ISO_A2" "ISO_A3" "ISO_N3" "LAT" "LDC"
[26] "LEVEL" "LLDC" "LON" "LabelRank" "MAP_COLOR"
[31] "NAME" "NAME_FORMA" "NAME_SORT" "POP_EST" "POSTAL"
[36] "REGION" "SID" "SOVEREIGNT" "SOV_A3" "SRES"
[41] "SRESmajor" "SUBUNIT" "SU_A3" "SU_DIF" "ScaleRank"
[46] "Stern" "TERR_" "TYPE" "continent"
Enter an ISO3 code: trying URL 'https://biogeo.ucdavis.edu/data/diva/msk_alt/AUT_msk_alt.zip'
Content length 334 bytes
==========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
downloaded 211 KB
== Skipped tests ===============================================================
* On CRAN (4)
* On Windows (1)
== Failed tests ================================================================
-- Error (test_ga_func.R:46:3): Test Genetic Algorithm Function ----------------
Error: incorrect number of dimensions
Backtrace:
x
1. \-windfarmGA::grid_area(shape = Polygon1, size = 200, prop = 1) test_ga_func.R:46:2
2. +-grid_intersect[indx, ]
3. +-sf:::`[.sfc`(grid_intersect, indx, )
4. | \-sf::st_sfc(...)
5. \-base::NextMethod()
-- Error (test_random_search.R:14:3): Test Random Search Functions -------------
Error: incorrect number of dimensions
Backtrace:
x
1. \-windfarmGA::random_search(...) test_random_search.R:14:2
2. \-windfarmGA::grid_area(shape = Polygon1, size = resolu, prop = propu)
3. +-grid_intersect[indx, ]
4. +-sf:::`[.sfc`(grid_intersect, indx, )
5. | \-sf::st_sfc(...)
6. \-base::NextMethod()
-- Error (test_user_input.R:22:3): User Input ----------------------------------
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
x
1. \-windfarmGA::getISO3(pp = points, crs_pp = 3035, col = "?") test_user_input.R:22:2
2. +-base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. | \-base::withCallingHandlers(...)
4. +-sf::st_intersection(pp, st_as_sf(countriesSP))
5. \-sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. +-sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. \-sf:::geos_op2_geom("intersection", x, y)
8. +-base::structure(...)
9. +-base::unlist(...)
10. \-base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. \-s2:::FUN(X[[i]], ...)
12. +-s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. +-s2::as_s2_geography(y)
14. \-sf:::as_s2_geography.sfc(y)
15. \-sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. +-s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. \-s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
18. +-s2:::new_s2_xptr(...)
19. \-s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
-- Error (test_visibility.R:36:3): Test Viewshed Functions ---------------------
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
x
1. \-windfarmGA::getISO3(pp = points, crs_pp = 3035) test_visibility.R:36:2
2. +-base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. | \-base::withCallingHandlers(...)
4. +-sf::st_intersection(pp, st_as_sf(countriesSP))
5. \-sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. +-sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. \-sf:::geos_op2_geom("intersection", x, y)
8. +-base::structure(...)
9. +-base::unlist(...)
10. \-base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. \-s2:::FUN(X[[i]], ...)
12. +-s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. +-s2::as_s2_geography(y)
14. \-sf:::as_s2_geography.sfc(y)
15. \-sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. +-s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. \-s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
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
Flavor: r-devel-windows-x86_64
Version: 3.0.0
Check: examples
Result: ERROR
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
Flavor: r-devel-windows-x86_64-gcc10-UCRT
Version: 3.0.0
Check: tests
Result: ERROR
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
Flavor: r-devel-windows-x86_64-gcc10-UCRT
Version: 3.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [14s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(windfarmGA)
> library(rgdal)
Loading required package: sp
rgdal: version: 1.5-23, (SVN revision 1121)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.2.2, released 2021/03/05
Path to GDAL shared files: /usr/share/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: /home/hornik/.local/share/proj:/usr/share/proj
PROJ CDN enabled: FALSE
Linking to sp version:1.4-5
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.
> library(rgeos)
rgeos version: 0.5-5, (SVN revision 640)
GEOS runtime version: 3.9.0-CAPI-1.16.2
Linking to sp version: 1.4-5
Polygon checking: TRUE
>
> test_check("windfarmGA")
[1] "ABBREV" "ADM0_A3" "ADM0_DIF" "ADMIN" "ADMIN.1"
[6] "AVOIDname" "AVOIDnumeric" "FIPS_10_" "FeatureCla" "GBD"
[11] "GDP_MD_EST" "GEO3" "GEO3major" "GEOUNIT" "GEOU_DIF"
[16] "GLOCAF" "GU_A3" "IMAGE24" "ISO3" "ISO3.1"
[21] "ISO_A2" "ISO_A3" "ISO_N3" "LAT" "LDC"
[26] "LEVEL" "LLDC" "LON" "LabelRank" "MAP_COLOR"
[31] "NAME" "NAME_FORMA" "NAME_SORT" "POP_EST" "POSTAL"
[36] "REGION" "SID" "SOVEREIGNT" "SOV_A3" "SRES"
[41] "SRESmajor" "SUBUNIT" "SU_A3" "SU_DIF" "ScaleRank"
[46] "Stern" "TERR_" "TYPE" "continent"
Enter an ISO3 code: trying URL 'https://biogeo.ucdavis.edu/data/diva/msk_alt/AUT_msk_alt.zip'
Content type 'application/zip' length 216165 bytes (211 KB)
==================================================
downloaded 211 KB
══ Skipped tests ═══════════════════════════════════════════════════════════════
• On CRAN (4)
══ Failed tests ════════════════════════════════════════════════════════════════
── Error (test_ga_func.R:46:3): Test Genetic Algorithm Function ────────────────
Error: incorrect number of dimensions
Backtrace:
█
1. └─windfarmGA::grid_area(shape = Polygon1, size = 200, prop = 1) test_ga_func.R:46:2
2. ├─grid_intersect[indx, ]
3. ├─sf:::`[.sfc`(grid_intersect, indx, )
4. │ └─sf::st_sfc(...)
5. └─base::NextMethod()
── Error (test_parallel.R:19:3): Test Parallelisation ──────────────────────────
Error: incorrect number of dimensions
Backtrace:
█
1. └─windfarmGA::genetic_algorithm(...) test_parallel.R:19:2
2. └─windfarmGA::grid_area(Polygon1, resol2, Proportionality)
3. ├─grid_intersect[indx, ]
4. ├─sf:::`[.sfc`(grid_intersect, indx, )
5. │ └─sf::st_sfc(...)
6. └─base::NextMethod()
── Error (test_random_search.R:14:3): Test Random Search Functions ─────────────
Error: incorrect number of dimensions
Backtrace:
█
1. └─windfarmGA::random_search(...) test_random_search.R:14:2
2. └─windfarmGA::grid_area(shape = Polygon1, size = resolu, prop = propu)
3. ├─grid_intersect[indx, ]
4. ├─sf:::`[.sfc`(grid_intersect, indx, )
5. │ └─sf::st_sfc(...)
6. └─base::NextMethod()
── Error (test_user_input.R:22:3): User Input ──────────────────────────────────
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
█
1. └─windfarmGA::getISO3(pp = points, crs_pp = 3035, col = "?") test_user_input.R:22:2
2. ├─base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. │ └─base::withCallingHandlers(...)
4. ├─sf::st_intersection(pp, st_as_sf(countriesSP))
5. └─sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. ├─sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. └─sf:::geos_op2_geom("intersection", x, y)
8. ├─base::structure(...)
9. ├─base::unlist(...)
10. └─base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. └─s2:::FUN(X[[i]], ...)
12. ├─s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. ├─s2::as_s2_geography(y)
14. └─sf:::as_s2_geography.sfc(y)
15. └─sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
18. ├─s2:::new_s2_xptr(...)
19. └─s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
── Error (test_visibility.R:36:3): Test Viewshed Functions ─────────────────────
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
█
1. └─windfarmGA::getISO3(pp = points, crs_pp = 3035) test_visibility.R:36:2
2. ├─base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. │ └─base::withCallingHandlers(...)
4. ├─sf::st_intersection(pp, st_as_sf(countriesSP))
5. └─sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. ├─sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. └─sf:::geos_op2_geom("intersection", x, y)
8. ├─base::structure(...)
9. ├─base::unlist(...)
10. └─base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. └─s2:::FUN(X[[i]], ...)
12. ├─s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. ├─s2::as_s2_geography(y)
14. └─sf:::as_s2_geography.sfc(y)
15. └─sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
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:
█
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 6 | WARN 0 | SKIP 4 | PASS 130 ]
Error: Test failures
Execution halted
Flavors: r-patched-linux-x86_64, r-release-linux-x86_64
Version: 3.0.0
Check: examples
Result: ERROR
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
Flavor: r-patched-solaris-x86
Version: 3.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [20s/38s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(windfarmGA)
> library(rgdal)
Loading required package: sp
rgdal: version: 1.5-23, (SVN revision 1121)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 2.2.4, released 2018/03/19
Path to GDAL shared files: /usr/local/share/gdal
GDAL binary built with GEOS: TRUE
Loaded PROJ runtime: Rel. 5.2.0, September 15th, 2018, [PJ_VERSION: 520]
Path to PROJ shared files: (autodetected)
Linking to sp version:1.4-5
> library(rgeos)
rgeos version: 0.5-5, (SVN revision 640)
GEOS runtime version: 3.6.4-CAPI-1.10.4
Linking to sp version: 1.4-5
Polygon checking: TRUE
>
> test_check("windfarmGA")
[1] "ABBREV" "ADM0_A3" "ADM0_DIF" "ADMIN" "ADMIN.1"
[6] "AVOIDname" "AVOIDnumeric" "FIPS_10_" "FeatureCla" "GBD"
[11] "GDP_MD_EST" "GEO3" "GEO3major" "GEOUNIT" "GEOU_DIF"
[16] "GLOCAF" "GU_A3" "IMAGE24" "ISO3" "ISO3.1"
[21] "ISO_A2" "ISO_A3" "ISO_N3" "LAT" "LDC"
[26] "LEVEL" "LLDC" "LON" "LabelRank" "MAP_COLOR"
[31] "NAME" "NAME_FORMA" "NAME_SORT" "POP_EST" "POSTAL"
[36] "REGION" "SID" "SOVEREIGNT" "SOV_A3" "SRES"
[41] "SRESmajor" "SUBUNIT" "SU_A3" "SU_DIF" "ScaleRank"
[46] "Stern" "TERR_" "TYPE" "continent"
Enter an ISO3 code: trying URL 'https://biogeo.ucdavis.edu/data/diva/msk_alt/AUT_msk_alt.zip'
Content type 'application/zip' length 216165 bytes (211 KB)
==================================================
downloaded 211 KB
══ Skipped tests ═══════════════════════════════════════════════════════════════
• On CRAN (4)
══ Failed tests ════════════════════════════════════════════════════════════════
── Error (test_ga_func.R:46:3): Test Genetic Algorithm Function ────────────────
Error: incorrect number of dimensions
Backtrace:
█
1. └─windfarmGA::grid_area(shape = Polygon1, size = 200, prop = 1) test_ga_func.R:46:2
2. ├─grid_intersect[indx, ]
3. ├─sf:::`[.sfc`(grid_intersect, indx, )
4. │ └─sf::st_sfc(...)
5. └─base::NextMethod()
── Error (test_parallel.R:19:3): Test Parallelisation ──────────────────────────
Error: incorrect number of dimensions
Backtrace:
█
1. └─windfarmGA::genetic_algorithm(...) test_parallel.R:19:2
2. └─windfarmGA::grid_area(Polygon1, resol2, Proportionality)
3. ├─grid_intersect[indx, ]
4. ├─sf:::`[.sfc`(grid_intersect, indx, )
5. │ └─sf::st_sfc(...)
6. └─base::NextMethod()
── Error (test_random_search.R:14:3): Test Random Search Functions ─────────────
Error: incorrect number of dimensions
Backtrace:
█
1. └─windfarmGA::random_search(...) test_random_search.R:14:2
2. └─windfarmGA::grid_area(shape = Polygon1, size = resolu, prop = propu)
3. ├─grid_intersect[indx, ]
4. ├─sf:::`[.sfc`(grid_intersect, indx, )
5. │ └─sf::st_sfc(...)
6. └─base::NextMethod()
── Error (test_user_input.R:22:3): User Input ──────────────────────────────────
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
█
1. └─windfarmGA::getISO3(pp = points, crs_pp = 3035, col = "?") test_user_input.R:22:2
2. ├─base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. │ └─base::withCallingHandlers(...)
4. ├─sf::st_intersection(pp, st_as_sf(countriesSP))
5. └─sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. ├─sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. └─sf:::geos_op2_geom("intersection", x, y)
8. ├─base::structure(...)
9. ├─base::unlist(...)
10. └─base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. └─s2:::FUN(X[[i]], ...)
12. ├─s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. ├─s2::as_s2_geography(y)
14. └─sf:::as_s2_geography.sfc(y)
15. └─sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
18. ├─s2:::new_s2_xptr(...)
19. └─s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
── Error (test_visibility.R:36:3): Test Viewshed Functions ─────────────────────
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
█
1. └─windfarmGA::getISO3(pp = points, crs_pp = 3035) test_visibility.R:36:2
2. ├─base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. │ └─base::withCallingHandlers(...)
4. ├─sf::st_intersection(pp, st_as_sf(countriesSP))
5. └─sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. ├─sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. └─sf:::geos_op2_geom("intersection", x, y)
8. ├─base::structure(...)
9. ├─base::unlist(...)
10. └─base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. └─s2:::FUN(X[[i]], ...)
12. ├─s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. ├─s2::as_s2_geography(y)
14. └─sf:::as_s2_geography.sfc(y)
15. └─sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
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:
█
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 6 | WARN 0 | SKIP 4 | PASS 130 ]
Error: Test failures
Execution halted
Flavor: r-patched-solaris-x86
Version: 3.0.0
Check: running examples for arch ‘i386’
Result: ERROR
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
Flavors: r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64
Version: 3.0.0
Check: running examples for arch ‘x64’
Result: ERROR
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
Flavors: r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64
Version: 3.0.0
Check: running tests for arch ‘i386’
Result: ERROR
Running 'testthat.R' [22s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(windfarmGA)
> library(rgdal)
Loading required package: sp
rgdal: version: 1.5-23, (SVN revision 1121)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.2.1, released 2020/12/29
Path to GDAL shared files: D:/temp/RtmpgbN1sB/RLIBS_1c5387f66235a/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: D:/temp/RtmpgbN1sB/RLIBS_1c5387f66235a/rgdal/proj
PROJ CDN enabled: FALSE
Linking to sp version:1.4-5
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.
Overwritten PROJ_LIB was D:/temp/RtmpgbN1sB/RLIBS_1c5387f66235a/rgdal/proj
> library(rgeos)
rgeos version: 0.5-5, (SVN revision 640)
GEOS runtime version: 3.8.0-CAPI-1.13.1
Linking to sp version: 1.4-5
Polygon checking: TRUE
>
> test_check("windfarmGA")
[1] "ABBREV" "ADM0_A3" "ADM0_DIF" "ADMIN" "ADMIN.1"
[6] "AVOIDname" "AVOIDnumeric" "FIPS_10_" "FeatureCla" "GBD"
[11] "GDP_MD_EST" "GEO3" "GEO3major" "GEOUNIT" "GEOU_DIF"
[16] "GLOCAF" "GU_A3" "IMAGE24" "ISO3" "ISO3.1"
[21] "ISO_A2" "ISO_A3" "ISO_N3" "LAT" "LDC"
[26] "LEVEL" "LLDC" "LON" "LabelRank" "MAP_COLOR"
[31] "NAME" "NAME_FORMA" "NAME_SORT" "POP_EST" "POSTAL"
[36] "REGION" "SID" "SOVEREIGNT" "SOV_A3" "SRES"
[41] "SRESmajor" "SUBUNIT" "SU_A3" "SU_DIF" "ScaleRank"
[46] "Stern" "TERR_" "TYPE" "continent"
Enter an ISO3 code: trying URL 'https://biogeo.ucdavis.edu/data/diva/msk_alt/AUT_msk_alt.zip'
Content type 'application/zip' length 216165 bytes (211 KB)
==================================================
downloaded 211 KB
== Skipped tests ===============================================================
* On CRAN (4)
* On Windows (1)
== Failed tests ================================================================
-- Error (test_ga_func.R:46:3): Test Genetic Algorithm Function ----------------
Error: incorrect number of dimensions
Backtrace:
x
1. \-windfarmGA::grid_area(shape = Polygon1, size = 200, prop = 1) test_ga_func.R:46:2
2. +-grid_intersect[indx, ]
3. +-sf:::`[.sfc`(grid_intersect, indx, )
4. | \-sf::st_sfc(...)
5. \-base::NextMethod()
-- Error (test_random_search.R:14:3): Test Random Search Functions -------------
Error: incorrect number of dimensions
Backtrace:
x
1. \-windfarmGA::random_search(...) test_random_search.R:14:2
2. \-windfarmGA::grid_area(shape = Polygon1, size = resolu, prop = propu)
3. +-grid_intersect[indx, ]
4. +-sf:::`[.sfc`(grid_intersect, indx, )
5. | \-sf::st_sfc(...)
6. \-base::NextMethod()
-- Error (test_user_input.R:22:3): User Input ----------------------------------
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
x
1. \-windfarmGA::getISO3(pp = points, crs_pp = 3035, col = "?") test_user_input.R:22:2
2. +-base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. | \-base::withCallingHandlers(...)
4. +-sf::st_intersection(pp, st_as_sf(countriesSP))
5. \-sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. +-sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. \-sf:::geos_op2_geom("intersection", x, y)
8. +-base::structure(...)
9. +-base::unlist(...)
10. \-base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. \-s2:::FUN(X[[i]], ...)
12. +-s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. +-s2::as_s2_geography(y)
14. \-sf:::as_s2_geography.sfc(y)
15. \-sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. +-s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. \-s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
18. +-s2:::new_s2_xptr(...)
19. \-s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
-- Error (test_visibility.R:36:3): Test Viewshed Functions ---------------------
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
x
1. \-windfarmGA::getISO3(pp = points, crs_pp = 3035) test_visibility.R:36:2
2. +-base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. | \-base::withCallingHandlers(...)
4. +-sf::st_intersection(pp, st_as_sf(countriesSP))
5. \-sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. +-sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. \-sf:::geos_op2_geom("intersection", x, y)
8. +-base::structure(...)
9. +-base::unlist(...)
10. \-base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. \-s2:::FUN(X[[i]], ...)
12. +-s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. +-s2::as_s2_geography(y)
14. \-sf:::as_s2_geography.sfc(y)
15. \-sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. +-s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. \-s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
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
Flavor: r-release-windows-ix86+x86_64
Version: 3.0.0
Check: running tests for arch ‘x64’
Result: ERROR
Running 'testthat.R' [21s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(windfarmGA)
> library(rgdal)
Loading required package: sp
rgdal: version: 1.5-23, (SVN revision 1121)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.2.1, released 2020/12/29
Path to GDAL shared files: D:/temp/RtmpgbN1sB/RLIBS_1c5387f66235a/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: D:/temp/RtmpgbN1sB/RLIBS_1c5387f66235a/rgdal/proj
PROJ CDN enabled: FALSE
Linking to sp version:1.4-5
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.
Overwritten PROJ_LIB was D:/temp/RtmpgbN1sB/RLIBS_1c5387f66235a/rgdal/proj
> library(rgeos)
rgeos version: 0.5-5, (SVN revision 640)
GEOS runtime version: 3.8.0-CAPI-1.13.1
Linking to sp version: 1.4-5
Polygon checking: TRUE
>
> test_check("windfarmGA")
[1] "ABBREV" "ADM0_A3" "ADM0_DIF" "ADMIN" "ADMIN.1"
[6] "AVOIDname" "AVOIDnumeric" "FIPS_10_" "FeatureCla" "GBD"
[11] "GDP_MD_EST" "GEO3" "GEO3major" "GEOUNIT" "GEOU_DIF"
[16] "GLOCAF" "GU_A3" "IMAGE24" "ISO3" "ISO3.1"
[21] "ISO_A2" "ISO_A3" "ISO_N3" "LAT" "LDC"
[26] "LEVEL" "LLDC" "LON" "LabelRank" "MAP_COLOR"
[31] "NAME" "NAME_FORMA" "NAME_SORT" "POP_EST" "POSTAL"
[36] "REGION" "SID" "SOVEREIGNT" "SOV_A3" "SRES"
[41] "SRESmajor" "SUBUNIT" "SU_A3" "SU_DIF" "ScaleRank"
[46] "Stern" "TERR_" "TYPE" "continent"
Enter an ISO3 code: trying URL 'https://biogeo.ucdavis.edu/data/diva/msk_alt/AUT_msk_alt.zip'
Content type 'application/zip' length 216165 bytes (211 KB)
==================================================
downloaded 211 KB
== Skipped tests ===============================================================
* On CRAN (4)
* On Windows (1)
== Failed tests ================================================================
-- Error (test_ga_func.R:46:3): Test Genetic Algorithm Function ----------------
Error: incorrect number of dimensions
Backtrace:
x
1. \-windfarmGA::grid_area(shape = Polygon1, size = 200, prop = 1) test_ga_func.R:46:2
2. +-grid_intersect[indx, ]
3. +-sf:::`[.sfc`(grid_intersect, indx, )
4. | \-sf::st_sfc(...)
5. \-base::NextMethod()
-- Error (test_random_search.R:14:3): Test Random Search Functions -------------
Error: incorrect number of dimensions
Backtrace:
x
1. \-windfarmGA::random_search(...) test_random_search.R:14:2
2. \-windfarmGA::grid_area(shape = Polygon1, size = resolu, prop = propu)
3. +-grid_intersect[indx, ]
4. +-sf:::`[.sfc`(grid_intersect, indx, )
5. | \-sf::st_sfc(...)
6. \-base::NextMethod()
-- Error (test_user_input.R:22:3): User Input ----------------------------------
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
x
1. \-windfarmGA::getISO3(pp = points, crs_pp = 3035, col = "?") test_user_input.R:22:2
2. +-base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. | \-base::withCallingHandlers(...)
4. +-sf::st_intersection(pp, st_as_sf(countriesSP))
5. \-sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. +-sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. \-sf:::geos_op2_geom("intersection", x, y)
8. +-base::structure(...)
9. +-base::unlist(...)
10. \-base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. \-s2:::FUN(X[[i]], ...)
12. +-s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. +-s2::as_s2_geography(y)
14. \-sf:::as_s2_geography.sfc(y)
15. \-sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. +-s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. \-s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
18. +-s2:::new_s2_xptr(...)
19. \-s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
-- Error (test_visibility.R:36:3): Test Viewshed Functions ---------------------
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
x
1. \-windfarmGA::getISO3(pp = points, crs_pp = 3035) test_visibility.R:36:2
2. +-base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. | \-base::withCallingHandlers(...)
4. +-sf::st_intersection(pp, st_as_sf(countriesSP))
5. \-sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. +-sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. \-sf:::geos_op2_geom("intersection", x, y)
8. +-base::structure(...)
9. +-base::unlist(...)
10. \-base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. \-s2:::FUN(X[[i]], ...)
12. +-s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. +-s2::as_s2_geography(y)
14. \-sf:::as_s2_geography.sfc(y)
15. \-sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. +-s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. \-s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
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
Flavor: r-release-windows-ix86+x86_64
Version: 3.0.0
Check: running tests for arch ‘i386’
Result: ERROR
Running 'testthat.R' [21s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(windfarmGA)
> library(rgdal)
Loading required package: sp
rgdal: version: 1.5-23, (SVN revision 1121)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.2.1, released 2020/12/29
Path to GDAL shared files: D:/temp/Rtmp2fAszy/RLIBS_17a1413954ed8/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: D:/temp/Rtmp2fAszy/RLIBS_17a1413954ed8/rgdal/proj
PROJ CDN enabled: FALSE
Linking to sp version:1.4-5
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.
Overwritten PROJ_LIB was D:/temp/Rtmp2fAszy/RLIBS_17a1413954ed8/rgdal/proj
> library(rgeos)
rgeos version: 0.5-5, (SVN revision 640)
GEOS runtime version: 3.8.0-CAPI-1.13.1
Linking to sp version: 1.4-5
Polygon checking: TRUE
>
> test_check("windfarmGA")
[1] "ABBREV" "ADM0_A3" "ADM0_DIF" "ADMIN" "ADMIN.1"
[6] "AVOIDname" "AVOIDnumeric" "FIPS_10_" "FeatureCla" "GBD"
[11] "GDP_MD_EST" "GEO3" "GEO3major" "GEOUNIT" "GEOU_DIF"
[16] "GLOCAF" "GU_A3" "IMAGE24" "ISO3" "ISO3.1"
[21] "ISO_A2" "ISO_A3" "ISO_N3" "LAT" "LDC"
[26] "LEVEL" "LLDC" "LON" "LabelRank" "MAP_COLOR"
[31] "NAME" "NAME_FORMA" "NAME_SORT" "POP_EST" "POSTAL"
[36] "REGION" "SID" "SOVEREIGNT" "SOV_A3" "SRES"
[41] "SRESmajor" "SUBUNIT" "SU_A3" "SU_DIF" "ScaleRank"
[46] "Stern" "TERR_" "TYPE" "continent"
Enter an ISO3 code: trying URL 'https://biogeo.ucdavis.edu/data/diva/msk_alt/AUT_msk_alt.zip'
Content type 'application/zip' length 216165 bytes (211 KB)
==================================================
downloaded 211 KB
== Skipped tests ===============================================================
* On CRAN (4)
* On Windows (1)
== Failed tests ================================================================
-- Error (test_ga_func.R:46:3): Test Genetic Algorithm Function ----------------
Error: incorrect number of dimensions
Backtrace:
x
1. \-windfarmGA::grid_area(shape = Polygon1, size = 200, prop = 1) test_ga_func.R:46:2
2. +-grid_intersect[indx, ]
3. +-sf:::`[.sfc`(grid_intersect, indx, )
4. | \-sf::st_sfc(...)
5. \-base::NextMethod()
-- Error (test_random_search.R:14:3): Test Random Search Functions -------------
Error: incorrect number of dimensions
Backtrace:
x
1. \-windfarmGA::random_search(...) test_random_search.R:14:2
2. \-windfarmGA::grid_area(shape = Polygon1, size = resolu, prop = propu)
3. +-grid_intersect[indx, ]
4. +-sf:::`[.sfc`(grid_intersect, indx, )
5. | \-sf::st_sfc(...)
6. \-base::NextMethod()
-- Error (test_user_input.R:22:3): User Input ----------------------------------
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
x
1. \-windfarmGA::getISO3(pp = points, crs_pp = 3035, col = "?") test_user_input.R:22:2
2. +-base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. | \-base::withCallingHandlers(...)
4. +-sf::st_intersection(pp, st_as_sf(countriesSP))
5. \-sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. +-sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. \-sf:::geos_op2_geom("intersection", x, y)
8. +-base::structure(...)
9. +-base::unlist(...)
10. \-base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. \-s2:::FUN(X[[i]], ...)
12. +-s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. +-s2::as_s2_geography(y)
14. \-sf:::as_s2_geography.sfc(y)
15. \-sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. +-s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. \-s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
18. +-s2:::new_s2_xptr(...)
19. \-s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
-- Error (test_visibility.R:36:3): Test Viewshed Functions ---------------------
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
x
1. \-windfarmGA::getISO3(pp = points, crs_pp = 3035) test_visibility.R:36:2
2. +-base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. | \-base::withCallingHandlers(...)
4. +-sf::st_intersection(pp, st_as_sf(countriesSP))
5. \-sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. +-sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. \-sf:::geos_op2_geom("intersection", x, y)
8. +-base::structure(...)
9. +-base::unlist(...)
10. \-base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. \-s2:::FUN(X[[i]], ...)
12. +-s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. +-s2::as_s2_geography(y)
14. \-sf:::as_s2_geography.sfc(y)
15. \-sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. +-s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. \-s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
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
Flavor: r-oldrel-windows-ix86+x86_64
Version: 3.0.0
Check: running tests for arch ‘x64’
Result: ERROR
Running 'testthat.R' [18s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(windfarmGA)
> library(rgdal)
Loading required package: sp
rgdal: version: 1.5-23, (SVN revision 1121)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.2.1, released 2020/12/29
Path to GDAL shared files: D:/temp/Rtmp2fAszy/RLIBS_17a1413954ed8/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: D:/temp/Rtmp2fAszy/RLIBS_17a1413954ed8/rgdal/proj
PROJ CDN enabled: FALSE
Linking to sp version:1.4-5
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.
Overwritten PROJ_LIB was D:/temp/Rtmp2fAszy/RLIBS_17a1413954ed8/rgdal/proj
> library(rgeos)
rgeos version: 0.5-5, (SVN revision 640)
GEOS runtime version: 3.8.0-CAPI-1.13.1
Linking to sp version: 1.4-5
Polygon checking: TRUE
>
> test_check("windfarmGA")
[1] "ABBREV" "ADM0_A3" "ADM0_DIF" "ADMIN" "ADMIN.1"
[6] "AVOIDname" "AVOIDnumeric" "FIPS_10_" "FeatureCla" "GBD"
[11] "GDP_MD_EST" "GEO3" "GEO3major" "GEOUNIT" "GEOU_DIF"
[16] "GLOCAF" "GU_A3" "IMAGE24" "ISO3" "ISO3.1"
[21] "ISO_A2" "ISO_A3" "ISO_N3" "LAT" "LDC"
[26] "LEVEL" "LLDC" "LON" "LabelRank" "MAP_COLOR"
[31] "NAME" "NAME_FORMA" "NAME_SORT" "POP_EST" "POSTAL"
[36] "REGION" "SID" "SOVEREIGNT" "SOV_A3" "SRES"
[41] "SRESmajor" "SUBUNIT" "SU_A3" "SU_DIF" "ScaleRank"
[46] "Stern" "TERR_" "TYPE" "continent"
Enter an ISO3 code: trying URL 'https://biogeo.ucdavis.edu/data/diva/msk_alt/AUT_msk_alt.zip'
Content type 'application/zip' length 216165 bytes (211 KB)
==================================================
downloaded 211 KB
== Skipped tests ===============================================================
* On CRAN (4)
* On Windows (1)
== Failed tests ================================================================
-- Error (test_ga_func.R:46:3): Test Genetic Algorithm Function ----------------
Error: incorrect number of dimensions
Backtrace:
x
1. \-windfarmGA::grid_area(shape = Polygon1, size = 200, prop = 1) test_ga_func.R:46:2
2. +-grid_intersect[indx, ]
3. +-sf:::`[.sfc`(grid_intersect, indx, )
4. | \-sf::st_sfc(...)
5. \-base::NextMethod()
-- Error (test_random_search.R:14:3): Test Random Search Functions -------------
Error: incorrect number of dimensions
Backtrace:
x
1. \-windfarmGA::random_search(...) test_random_search.R:14:2
2. \-windfarmGA::grid_area(shape = Polygon1, size = resolu, prop = propu)
3. +-grid_intersect[indx, ]
4. +-sf:::`[.sfc`(grid_intersect, indx, )
5. | \-sf::st_sfc(...)
6. \-base::NextMethod()
-- Error (test_user_input.R:22:3): User Input ----------------------------------
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
x
1. \-windfarmGA::getISO3(pp = points, crs_pp = 3035, col = "?") test_user_input.R:22:2
2. +-base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. | \-base::withCallingHandlers(...)
4. +-sf::st_intersection(pp, st_as_sf(countriesSP))
5. \-sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. +-sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. \-sf:::geos_op2_geom("intersection", x, y)
8. +-base::structure(...)
9. +-base::unlist(...)
10. \-base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. \-s2:::FUN(X[[i]], ...)
12. +-s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. +-s2::as_s2_geography(y)
14. \-sf:::as_s2_geography.sfc(y)
15. \-sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. +-s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. \-s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
18. +-s2:::new_s2_xptr(...)
19. \-s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
-- Error (test_visibility.R:36:3): Test Viewshed Functions ---------------------
Error: Evaluation error: Found 5 features with invalid spherical geometry.
[12] Loop 0 is not valid: Edge 743 crosses edge 998
[20] Loop 0 is not valid: Edge 130 crosses edge 132
[39] Loop 0 is not valid: Edge 3145 has duplicate vertex with edge 3148
[100] Loop 0 is not valid: Edge 1356 has duplicate vertex with edge 1359
[123] Loop 0 is not valid: Edge 139 has duplicate vertex with edge 142.
Backtrace:
x
1. \-windfarmGA::getISO3(pp = points, crs_pp = 3035) test_visibility.R:36:2
2. +-base::suppressWarnings(st_intersection(pp, st_as_sf(countriesSP)))
3. | \-base::withCallingHandlers(...)
4. +-sf::st_intersection(pp, st_as_sf(countriesSP))
5. \-sf:::st_intersection.sf(pp, st_as_sf(countriesSP))
6. +-sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y))
7. \-sf:::geos_op2_geom("intersection", x, y)
8. +-base::structure(...)
9. +-base::unlist(...)
10. \-base::lapply(x, fn, y, s2::s2_options(model = s2_model, ...))
11. \-s2:::FUN(X[[i]], ...)
12. +-s2:::recycle_common(as_s2_geography(x), as_s2_geography(y))
13. +-s2::as_s2_geography(y)
14. \-sf:::as_s2_geography.sfc(y)
15. \-sf:::st_as_s2.sfc(x, ..., oriented = oriented)
16. +-s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
17. \-s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
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
Flavor: r-oldrel-windows-ix86+x86_64