- using R version 4.2.1 Patched (2022-06-26 r82528)
- using platform: x86_64-pc-linux-gnu (64-bit)
- using session charset: UTF-8
- checking for file ‘ggspatial/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘ggspatial’ version ‘1.1.5’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘ggspatial’ can be installed ... OK
- checking package directory ... OK
- checking for future file timestamps ... 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 ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... 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 ... [17s/20s] OK
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 examples ... [3s/4s] ERROR
Running examples in ‘ggspatial-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: annotation_map_tile
> ### Title: Add background OSM tiles
> ### Aliases: annotation_map_tile GeomMapTile
> ### Keywords: datasets
>
> ### ** Examples
>
> library(ggplot2)
> load_longlake_data()
Error in CPL_get_z_range(obj, 3) : z error - expecting three columns;
Calls: load_longlake_data ... z_range.MtrxSetSetSet -> zb_wrap -> stopifnot -> CPL_get_z_range
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [38s/44s] ERROR
Running ‘testthat.R’ [38s/44s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(ggspatial)
>
> test_check("ggspatial")
[ FAIL 3 | WARN 0 | SKIP 21 | PASS 84 ]
══ Skipped tests ═══════════════════════════════════════════════════════════════
• On CRAN (20)
• stars aren't implemented (1)
══ Failed tests ════════════════════════════════════════════════════════════════
── Error (test-df-spatial-sf.R:15:3): df_spatial() works with sf objects ───────
<Rcpp::exception/C++Error/error/condition>
Error in `CPL_get_z_range(obj, 3)`: z error - expecting three columns;
Backtrace:
▆
1. └─ggspatial::load_longlake_data() at test-df-spatial-sf.R:15:2
2. └─sf::read_sf(file.path(longlake_folder, names(vector_layers)[i]))
3. ├─sf::st_read(...)
4. └─sf:::st_read.character(...)
5. └─sf:::process_cpl_read_ogr(...)
6. └─sf::st_sfc(geom[[i]], crs = attr(geom[[i]], "crs"))
7. └─sf:::compute_z_range(lst)
8. ├─sf:::zb_wrap(z_range.MtrxSetSetSet(obj))
9. │ └─base::stopifnot(is.numeric(zb) && length(zb) == 2)
10. └─sf:::z_range.MtrxSetSetSet(obj)
11. ├─sf:::zb_wrap(CPL_get_z_range(obj, 3))
12. │ └─base::stopifnot(is.numeric(zb) && length(zb) == 2)
13. └─sf:::CPL_get_z_range(obj, 3)
── Error (test-df-spatial-sp.R:9:3): df_spatial() works with sp objects ────────
<Rcpp::exception/C++Error/error/condition>
Error in `CPL_get_z_range(obj, 3)`: z error - expecting three columns;
Backtrace:
▆
1. └─ggspatial::load_longlake_data(vector_format = "sp") at test-df-spatial-sp.R:9:2
2. ├─base::suppressWarnings(...)
3. │ └─base::withCallingHandlers(...)
4. ├─methods::as(...)
5. │ └─methods:::.class1(object)
6. ├─sf::st_zm(sf::read_sf(file.path(longlake_folder, names(vector_layers)[i])))
7. └─sf::read_sf(file.path(longlake_folder, names(vector_layers)[i]))
8. ├─sf::st_read(...)
9. └─sf:::st_read.character(...)
10. └─sf:::process_cpl_read_ogr(...)
11. └─sf::st_sfc(geom[[i]], crs = attr(geom[[i]], "crs"))
12. └─sf:::compute_z_range(lst)
13. ├─sf:::zb_wrap(z_range.MtrxSetSetSet(obj))
14. │ └─base::stopifnot(is.numeric(zb) && length(zb) == 2)
15. └─sf:::z_range.MtrxSetSetSet(obj)
16. ├─sf:::zb_wrap(CPL_get_z_range(obj, 3))
17. │ └─base::stopifnot(is.numeric(zb) && length(zb) == 2)
18. └─sf:::CPL_get_z_range(obj, 3)
── Error (test-longlake-data.R:6:3): longlake data loader works as expected ────
<Rcpp::exception/C++Error/error/condition>
Error in `CPL_get_z_range(obj, 3)`: z error - expecting three columns;
Backtrace:
▆
1. └─ggspatial::load_longlake_data(...) at test-longlake-data.R:6:2
2. └─sf::read_sf(file.path(longlake_folder, names(vector_layers)[i]))
3. ├─sf::st_read(...)
4. └─sf:::st_read.character(...)
5. └─sf:::process_cpl_read_ogr(...)
6. └─sf::st_sfc(geom[[i]], crs = attr(geom[[i]], "crs"))
7. └─sf:::compute_z_range(lst)
8. ├─sf:::zb_wrap(z_range.MtrxSetSetSet(obj))
9. │ └─base::stopifnot(is.numeric(zb) && length(zb) == 2)
10. └─sf:::z_range.MtrxSetSetSet(obj)
11. ├─sf:::zb_wrap(CPL_get_z_range(obj, 3))
12. │ └─base::stopifnot(is.numeric(zb) && length(zb) == 2)
13. └─sf:::CPL_get_z_range(obj, 3)
[ FAIL 3 | WARN 0 | SKIP 21 | PASS 84 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs, 1 NOTE