CRAN Package Check Results for Maintainer ‘Nikita Platonov <platonov at sevin.ru>’

Last updated on 2022-04-24 03:53:02 CEST.

Package ERROR OK
ursa 1 11

Package ursa

Current CRAN status: ERROR: 1, OK: 11

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