══ Failed tests ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
── Error (test-gis-tools.R:120:3): gh_covering works ───────────────────────────
Error in `sp::`proj4string<-`(`*tmp*`, value = prj4)`: (converted from warning) A new CRS was assigned to an object with an existing CRS:
+proj=longlat +datum=WGS84 +no_defs
without reprojecting.
For reprojection, use function spTransform
Backtrace:
▆
1. └─geohashTools::gh_covering(banjarmasin) at test-gis-tools.R:120:2
2. ├─sp::`proj4string<-`(`*tmp*`, value = prj4)
3. └─sp::`proj4string<-`(`*tmp*`, value = prj4)
── Error (test-gis-tools.R:164:3): gh_covering_sf works ────────────────────────
Error in `sp::`proj4string<-`(`*tmp*`, value = prj4)`: (converted from warning) A new CRS was assigned to an object with an existing CRS:
+proj=longlat +datum=WGS84 +no_defs
without reprojecting.
For reprojection, use function spTransform
Backtrace:
▆
1. └─geohashTools::gh_covering(banjarmasin) at test-gis-tools.R:164:2
2. ├─sp::`proj4string<-`(`*tmp*`, value = prj4)
3. └─sp::`proj4string<-`(`*tmp*`, value = prj4)
#31 would solve this.
Once this is fixed,
options(warn = 2L)should be set in testthat.R