Last updated on 2022-04-24 03:52:41 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 3.9.6 | 9.61 | 436.56 | 446.17 | OK | |
r-devel-linux-x86_64-debian-gcc | 3.9.6 | 7.55 | 329.03 | 336.58 | OK | |
r-devel-linux-x86_64-fedora-clang | 3.9.6 | 561.25 | OK | |||
r-devel-linux-x86_64-fedora-gcc | 3.9.6 | 539.02 | OK | |||
r-patched-linux-x86_64 | 3.9.6 | 14.26 | 429.03 | 443.29 | OK | |
r-release-linux-x86_64 | 3.9.6 | 8.01 | 382.69 | 390.70 | ERROR | |
r-release-macos-arm64 | 3.9.6 | OK | ||||
r-release-macos-x86_64 | 3.9.6 | OK | ||||
r-release-windows-x86_64 | 3.9.6 | 86.00 | 504.00 | 590.00 | OK | |
r-oldrel-macos-arm64 | 3.9.6 | OK | ||||
r-oldrel-macos-x86_64 | 3.9.6 | OK | ||||
r-oldrel-windows-ix86+x86_64 | 3.9.6 | 19.00 | 803.00 | 822.00 | OK |
Version: 3.9.6
Check: examples
Result: ERROR
Running examples in ‘ursa-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: spatial_read
> ### Title: Wrapper functions for reading spatial objects.
> ### Aliases: spatial_read
> ### Keywords: attribute
>
> ### ** Examples
>
> session_grid(NULL)
> n <- 1e2
> x <- runif(n,min=25,max=65)
> y <- runif(n,min=55,max=65)
> z <- runif(n,min=1,max=10)
> da <- data.frame(x=x,y=y,z=z)
> if (requireNamespace("sf",quietly=TRUE)) {
+ obj1 <- sf::st_as_sf(da,coords=c("x","y"),crs=4326)
+ print(series(obj1))
+ fname1 <- file.path(tempdir(),"res1.shp")
+ print(fname1)
+ spatial_write(obj1,fname1)
+ res1 <- spatial_read(fname1,engine="sf")
+ print(series(res1))
+ }
Simple feature collection with 6 features and 1 field
Geometry type: POINT
Dimension: XY
Bounding box: xmin: 35.62035 ymin: 57.7026 xmax: 57.43481 ymax: 63.40507
Geodetic CRS: WGS 84
z geometry
1 3.407574 POINT (35.62035 61.54724)
2 2.967808 POINT (39.88496 58.53197)
3 5.651172 POINT (47.91413 57.7026)
98 2.070123 POINT (41.40336 63.40507)
99 1.453957 POINT (57.43481 58.17964)
100 9.363285 POINT (49.19733 62.82851)
[1] "/tmp/RtmpaHkTv6/res1.shp"
Simple feature collection with 6 features and 1 field
Geometry type: POINT
Dimension: XY
Bounding box: xmin: 35.62035 ymin: 57.7026 xmax: 57.43481 ymax: 63.40507
Geodetic CRS: WGS 84
z geometry
1 3.407574 POINT (35.62035 61.54724)
2 2.967808 POINT (39.88496 58.53197)
3 5.651172 POINT (47.91413 57.7026)
98 2.070123 POINT (41.40336 63.40507)
99 1.453957 POINT (57.43481 58.17964)
100 9.363285 POINT (49.19733 62.82851)
> if (requireNamespace("sp")) {
+ obj2 <- da
+ sp::coordinates(obj2) <- c("x","y")
+ sp::proj4string(obj2) <- sp::CRS("+init=epsg:4326")
+ print(series(obj2))
+ print(spatial_crs(obj2))
+ fname2 <- file.path(tempdir(),"res2.shp")
+ print(fname2)
+ spatial_write(obj2,fname2)
+ res2 <- spatial_read(fname2,engine="sp")
+ print(series(obj2))
+ }
coordinates z
1 (35.62035, 61.54724) 3.407574
2 (39.88496, 58.53197) 2.967808
3 (47.91413, 57.7026) 5.651172
98 (41.40336, 63.40507) 2.070123
99 (57.43481, 58.17964) 1.453957
100 (49.19733, 62.82851) 9.363285
[1] "+proj=longlat +datum=WGS84 +no_defs"
[1] "/tmp/RtmpaHkTv6/res2.shp"
Error in iconv(fld_names, from = encoding, to = "UTF-8") :
unsupported conversion from 'NA' to 'UTF-8'
Calls: spatial_write -> <Anonymous> -> iconv
Execution halted
Flavor: r-release-linux-x86_64