- using R version 4.3.1 (2023-06-16 ucrt)
- using platform: x86_64-w64-mingw32 (64-bit)
- R was compiled by
gcc.exe (GCC) 12.2.0
GNU Fortran (GCC) 12.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'geoviz/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'geoviz' version '0.2.2'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'geoviz' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [4s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking LazyData ... NOTE
'LazyData' is specified without a 'data' directory
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [14s] ERROR
Running examples in 'geoviz-Ex.R' failed
The error most likely occurred in:
> ### Name: crop_raster_square
> ### Title: Crops a raster and returns a smaller square raster
> ### Aliases: crop_raster_square
>
> ### ** Examples
>
> crop_raster_square(example_raster(), lat = 54.513293, long = -3.045598, square_km = 0.01)
rgeos version: 0.6-3, (SVN revision 696)
GEOS runtime version: 3.11.2-CAPI-1.17.2
Please note that rgeos will be retired during October 2023,
plan transition to sf or terra functions using GEOS at your earliest convenience.
See https://r-spatial.org/r/2023/05/15/evolution4.html for details.
GEOS using OverlayNG
Linking to sp version: 2.0-0
Polygon checking: TRUE
Warning: GEOS support is provided by the sf and terra packages among others
Error in rgeos::gBuffer(bounding_box, width = bounding_box$square_km * :
length(width) == 1 is not TRUE
Calls: crop_raster_square -> square_bounding_box -> <Anonymous> -> stopifnot
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [28s] ERROR
Running 'testthat.R' [28s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(geoviz)
>
> test_check("geoviz")
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 13 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_imagery.R:20:3'): slippy_raster() returns data ─────────────────
Error in `rgeos::gBuffer(bounding_box, width = bounding_box$square_km *
1000, quadsegs = 1, capStyle = "SQUARE")`: length(width) == 1 is not TRUE
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test_imagery.R:20:2
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─geoviz::slippy_raster(...)
7. └─geoviz:::square_bounding_box(lat, long, square_km)
8. └─rgeos::gBuffer(...)
9. └─base::stopifnot(length(width) == 1)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 13 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in 'inst/doc' ... OK
- checking re-building of vignette outputs ... [4s] OK
- checking PDF version of manual ... [17s] OK
- checking HTML version of manual ... [3s] OK
- DONE
Status: 2 ERRORs, 1 NOTE