CRAN Package Check Results for Package sf

Last updated on 2017-05-23 19:48:06.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.4-3 59.98 102.85 162.82 OK
r-devel-linux-x86_64-debian-gcc 0.4-3 57.15 103.72 160.87 OK
r-devel-linux-x86_64-fedora-gcc 0.4-3 321.79 NOTE --no-stop-on-test-error
r-devel-windows-ix86+x86_64 0.4-3 310.00 516.00 826.00 NOTE
r-patched-linux-x86_64 0.4-3 47.97 104.94 152.91 OK
r-patched-solaris-sparc 0.4-3 1570.70 ERROR --no-stop-on-test-error
r-patched-solaris-x86 0.4-3 350.50 NOTE --no-stop-on-test-error
r-release-linux-x86_64 0.4-3 52.78 101.08 153.86 OK
r-release-windows-ix86+x86_64 0.4-3 233.00 558.00 791.00 NOTE
r-release-osx-x86_64 0.4-3 NOTE
r-oldrel-windows-ix86+x86_64 0.4-3 308.00 542.00 850.00 NOTE
r-oldrel-osx-x86_64 0.4-3 NOTE

Additional issues

valgrind

Check Details

Version: 0.4-3
Flags: --no-stop-on-test-error
Check: installed package size
Result: NOTE
     installed size is 13.5Mb
     sub-directories of 1Mb or more:
     doc 4.0Mb
     libs 6.0Mb
     sqlite 1.5Mb
Flavors: r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-sparc, r-patched-solaris-x86

Version: 0.4-3
Check: installed package size
Result: NOTE
     installed size is 67.6Mb
     sub-directories of 1Mb or more:
     doc 4.0Mb
     gdal 3.2Mb
     libs 51.9Mb
     proj 5.0Mb
     sqlite 1.5Mb
Flavors: r-devel-windows-ix86+x86_64, r-release-windows-ix86+x86_64, r-release-osx-x86_64, r-oldrel-windows-ix86+x86_64, r-oldrel-osx-x86_64

Version: 0.4-3
Flags: --no-stop-on-test-error
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: ‘microbenchmark’
Flavors: r-patched-solaris-sparc, r-patched-solaris-x86

Version: 0.4-3
Flags: --no-stop-on-test-error
Check: tests
Result: ERROR
     Running ‘cast.R’ [13s/13s]
     Comparing ‘cast.Rout’ to ‘cast.Rout.save’ ...4c4
    < Linking to GEOS 3.6.1, GDAL 2.2.0, proj.4 4.9.3
    ---
    > Linking to GEOS 3.5.1, GDAL 2.1.3, proj.4 4.9.2
     Running ‘crs.R’
     Comparing ‘crs.Rout’ to ‘crs.Rout.save’ ...15c15,16
    < GDAL Error 6: EPSG PCS/GCS code -1 not found in EPSG support files. Is this a valid EPSG coordinate system?
    ---
    > GDAL Error 6: EPSG PCS/GCS code -1 not found in EPSG support files. Is this a valid
    > EPSG coordinate system?
    27c28,29
    < GDAL Error 6: EPSG PCS/GCS code 999999 not found in EPSG support files. Is this a valid EPSG coordinate system?
    ---
    > GDAL Error 6: EPSG PCS/GCS code 999999 not found in EPSG support files. Is this a valid
    > EPSG coordinate system?
    45c47
    < [1] "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.2369,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m +no_defs"
    ---
    > [1] "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.4171,50.3319,465.5524,-0.398957,0.343988,-1.87740,4.0725 +units=m +no_defs"
     Running ‘dist.R’ [17s/17s]
     Comparing ‘dist.Rout’ to ‘dist.Rout.save’ ... OK
     Running ‘dplyr.R’ [30s/30s]
     Comparing ‘dplyr.Rout’ to ‘dplyr.Rout.save’ ...73c73
    < # A tibble: 4 x 3
    ---
    > # A tibble: 4 × 3
    186c186
    < # A tibble: 1 x 2
    ---
    > # A tibble: 1 × 2
    208c208
    < # A tibble: 1 x 2
    ---
    > # A tibble: 1 × 2
     Running ‘empty.R’
     Comparing ‘empty.Rout’ to ‘empty.Rout.save’ ... OK
     Running ‘gdal_geom.R’ [15s/15s]
     Comparing ‘gdal_geom.Rout’ to ‘gdal_geom.Rout.save’ ...91c91
    < GDAL has 63 drivers
    ---
    > GDAL has 75 drivers
     Running ‘geos.R’ [53s/53s]
     Comparing ‘geos.Rout’ to ‘geos.Rout.save’ ... OK
     Running ‘graticule.R’ [23s/23s]
     Comparing ‘graticule.Rout’ to ‘graticule.Rout.save’ ... OK
     Running ‘grid.R’ [16s/16s]
     Comparing ‘grid.Rout’ to ‘grid.Rout.save’ ... OK
     Running ‘plot.R’ [107s/107s]
     Comparing ‘plot.Rout’ to ‘plot.Rout.save’ ... OK
     Running ‘read.R’ [16s/16s]
     Running ‘roundtrip.R’ [56s/56s]
     Comparing ‘roundtrip.Rout’ to ‘roundtrip.Rout.save’ ...71c71
    < Ah :39 1st Qu.: 80.0 epsg:NA : 0
    ---
    > Ah :39 1st Qu.: 80.0 epsg:28992 : 0
    87c87
    < epsg:NA : 0
    ---
    > epsg:28992 : 0
    95c95
    < epsg:NA :0
    ---
    > epsg:28992 :0
    100c100
    < epsg:NA :0
    ---
    > epsg:28992 :0
    105c105
    < epsg:NA :0
    ---
    > epsg:28992 :0
    118c118
    < epsg:NA : 0
    ---
    > epsg:28992 : 0
    133c133
    < epsg:NA : 0
    ---
    > epsg:28992 : 0
     Running ‘sfc.R’ [24s/24s]
     Comparing ‘sfc.Rout’ to ‘sfc.Rout.save’ ...367c367
    < "3.6.1" "2.2.0" "4.9.3"
    ---
    > "3.5.1" "2.1.3" "4.9.2"
    690,691c690,691
    < MULTIPOINT(0.0914728223831465 0, 0.073852008753...
    < MULTIPOINT(0.048822235690146 1, 0.0716507713927...
    ---
    > MULTIPOINT(0.0914728223831462 0, 0.073852008753...
    > MULTIPOINT(0.0488222356901458 1, 0.071650771392...
     Running ‘sfg.R’
     Comparing ‘sfg.Rout’ to ‘sfg.Rout.save’ ... OK
     Running ‘testthat.R’ [48s/87s]
     Comparing ‘testthat.Rout’ to ‘testthat.Rout.save’ ...7c7
    < Reading layer `nc.gpkg' from data source `/home/ripley/R/Lib32/sf/gpkg/nc.gpkg' using driver `GPKG'
    ---
    > Reading layer `nc.gpkg' from data source `/home/edzer/git/sf.Rcheck/sf/gpkg/nc.gpkg' using driver `GPKG'
    31c31
    < Dataset /home/ripley/R/packages/tests32/sf.Rcheck/tests/testthat/x.gpkg already exists: remove first, use update=TRUE to append,
    ---
    > Dataset /home/edzer/git/sf.Rcheck/tests/testthat/x.gpkg already exists: remove first, use update=TRUE to append,
    37c37
    < OK: 456 SKIPPED: 9 FAILED: 0
    ---
    > OK: 534 SKIPPED: 0 FAILED: 0
     Running ‘wkb.R’ [10s/10s]
     Comparing ‘wkb.Rout’ to ‘wkb.Rout.save’ ...53c53
    < [1] "00000000040000000300000000013ff00000000000004010000000000000000000000140000000000000004014000000000000000000000140080000000000004018000000000000"
    ---
    > [1] "0104000000030000000101000000000000000000f03f0000000000001040010100000000000000000000400000000000001440010100000000000000000008400000000000001840"
    55,56c55,56
    < [1] "000000000100000000000000003ff0000000000000"
    < [2] "00000000040000000300000000013ff00000000000004010000000000000000000000140000000000000004014000000000000000000000140080000000000004018000000000000"
    ---
    > [1] "01010000000000000000000000000000000000f03f"
    > [2] "0104000000030000000101000000000000000000f03f0000000000001040010100000000000000000000400000000000001440010100000000000000000008400000000000001840"
    Running the tests in ‘tests/read.R’ failed.
    Complete output:
     > Sys.setenv(TZ="UTC")
     > suppressPackageStartupMessages(library(sf))
     > if ("GPKG" %in% st_drivers()$name) {
     + tst = st_read(system.file("gpkg/nc.gpkg", package="sf"), "nc.gpkg", crs = 4267, quiet = TRUE)
     + tst = st_read(system.file("gpkg/nc.gpkg", package="sf"), quiet = TRUE) # default layer name
     + }
     >
     > tst = st_read(system.file("shape/nc.shp", package="sf"), quiet = TRUE) # no layer specified
     >
     > # data from https://github.com/edzer/sfr/issues/6
     > tst = st_read(system.file("shape/storms_xyz.shp", package="sf"), quiet = TRUE)
     > class(st_geometry(tst))
     [1] "sfc_LINESTRING" "sfc"
     > class(st_geometry(tst)[[1]])
     [1] "XYZ" "LINESTRING" "sfg"
     > tst = st_read(system.file("shape/storms_xyzm.shp", package="sf"), quiet = TRUE)
     > class(st_geometry(tst))
     [1] "sfc_LINESTRING" "sfc"
     > class(st_geometry(tst)[[1]])
     [1] "XYM" "LINESTRING" "sfg"
     > tst = st_read(system.file("shape/storms_xyz_feature.shp", package="sf"), quiet = TRUE)
     > class(st_geometry(tst))
     [1] "sfc_LINESTRING" "sfc"
     > class(st_geometry(tst)[[1]])
     [1] "XYZ" "LINESTRING" "sfg"
     > tst = st_read(system.file("shape/storms_xyzm_feature.shp", package="sf"), quiet = TRUE)
     > class(st_geometry(tst))
     [1] "sfc_LINESTRING" "sfc"
     > class(st_geometry(tst)[[1]])
     [1] "XYM" "LINESTRING" "sfg"
     >
     > if ("GPKG" %in% st_drivers()$name) { # read Int64
     + print(st_read(system.file("gpkg/tl.gpkg", package="sf"), quiet = TRUE)$AWATER)
     + print(st_read(system.file("gpkg/tl.gpkg", package="sf"), , quiet = TRUE, int64_as_string = TRUE)$AWATER)
     + }
     [1] 1028678842
     [1] 1028678842
     Levels: 1028678842
     >
     > # see https://github.com/edzer/sfr/issues/45 :
     > if ("OSM" %in% st_drivers()$name && Sys.info()['sysname'] != "Darwin") {
     + osm = system.file("osm/overpass.osm", package="sf")
     + print(st_layers(osm))
     + suppressWarnings(print(st_layers(osm, do_count = TRUE)))
     + suppressWarnings(print(st_read(osm, "multipolygons", quiet = TRUE)))
     + }
     Driver: OSM
     Available layers:
     layer_name geometry_type features fields
     1 points Point NA 10
     2 lines Line String NA 9
     3 multilinestrings Multi Line String NA 4
     4 multipolygons Multi Polygon NA 25
     5 other_relations Geometry Collection NA 4
     Driver: OSM
     Available layers:
     layer_name geometry_type features fields
     1 points Point 0 10
     2 lines Line String 0 9
     3 multilinestrings Multi Line String 0 4
     4 multipolygons Multi Polygon 3 25
     5 other_relations Geometry Collection 0 4
     Simple feature collection with 3 features and 25 fields
     geometry type: MULTIPOLYGON
     dimension: XY
     bbox: xmin: -1.556254 ymin: 53.79519 xmax: -1.550716 ymax: 53.80341
     epsg (SRID): 4326
     proj4string: +proj=longlat +datum=WGS84 +no_defs
     osm_id osm_way_id name type aeroway amenity admin_level barrier boundary
     1 <NA> 263958111 <NA> <NA> <NA> <NA> <NA> <NA> <NA>
     2 <NA> 301461256 <NA> <NA> <NA> <NA> <NA> <NA> <NA>
     3 <NA> 462227487 <NA> <NA> <NA> <NA> <NA> <NA> <NA>
     building craft geological historic land_area landuse leisure man_made
     1 <NA> <NA> <NA> <NA> <NA> <NA> park <NA>
     2 <NA> <NA> <NA> <NA> <NA> <NA> park <NA>
     3 <NA> <NA> <NA> <NA> <NA> <NA> park <NA>
     military natural office place shop sport tourism other_tags
     1 <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA>
     2 <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA>
     3 <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA>
     geometry
     1 MULTIPOLYGON(((-1.5507185 5...
     2 MULTIPOLYGON(((-1.5557631 5...
     3 MULTIPOLYGON(((-1.551502 53...
     >
     > # layer opening option:
     > st_read(system.file("shape/nc.shp", package="sf"), quiet = TRUE,
     + options = c("ADJUST_TYPE=YES", "ENCODING=CPL_ENC_UTF8"))
     Simple feature collection with 100 features and 14 fields
     geometry type: MULTIPOLYGON
     dimension: XY
     bbox: xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
     epsg (SRID): 4267
     proj4string: +proj=longlat +datum=NAD27 +no_defs
     First 20 features:
     AREA PERIMETER CNTY_ CNTY_ID NAME FIPS FIPSNO CRESS_ID BIR74 SID74
     1 0.114 1.442 1825 1825 Ashe 37009 37009 5 1091 1
     2 0.061 1.231 1827 1827 Alleghany 37005 37005 3 487 0
     3 0.143 1.630 1828 1828 Surry 37171 37171 86 3188 5
     4 0.070 2.968 1831 1831 Currituck 37053 37053 27 508 1
     5 0.153 2.206 1832 1832 Northampton 37131 37131 66 1421 9
     6 0.097 1.670 1833 1833 Hertford 37091 37091 46 1452 7
     7 0.062 1.547 1834 1834 Camden 37029 37029 15 286 0
     8 0.091 1.284 1835 1835 Gates 37073 37073 37 420 0
     9 0.118 1.421 1836 1836 Warren 37185 37185 93 968 4
     10 0.124 1.428 1837 1837 Stokes 37169 37169 85 1612 1
     11 0.114 1.352 1838 1838 Caswell 37033 37033 17 1035 2
     12 0.153 1.616 1839 1839 Rockingham 37157 37157 79 4449 16
     13 0.143 1.663 1840 1840 Granville 37077 37077 39 1671 4
     14 0.109 1.325 1841 1841 Person 37145 37145 73 1556 4
     15 0.072 1.085 1842 1842 Vance 37181 37181 91 2180 4
     16 0.190 2.204 1846 1846 Halifax 37083 37083 42 3608 18
     17 0.053 1.171 1848 1848 Pasquotank 37139 37139 70 1638 3
     18 0.199 1.984 1874 1874 Wilkes 37193 37193 97 3146 4
     19 0.081 1.288 1880 1880 Watauga 37189 37189 95 1323 1
     20 0.063 1.000 1881 1881 Perquimans 37143 37143 72 484 1
     NWBIR74 BIR79 SID79 NWBIR79 geometry
     1 10 1364 0 19 MULTIPOLYGON(((-81.47275543...
     2 10 542 3 12 MULTIPOLYGON(((-81.23989105...
     3 208 3616 6 260 MULTIPOLYGON(((-80.45634460...
     4 123 830 2 145 MULTIPOLYGON(((-76.00897216...
     5 1066 1606 3 1197 MULTIPOLYGON(((-77.21766662...
     6 954 1838 5 1237 MULTIPOLYGON(((-76.74506378...
     7 115 350 2 139 MULTIPOLYGON(((-76.00897216...
     8 254 594 2 371 MULTIPOLYGON(((-76.56250762...
     9 748 1190 2 844 MULTIPOLYGON(((-78.30876159...
     10 160 2038 5 176 MULTIPOLYGON(((-80.02567291...
     11 550 1253 2 597 MULTIPOLYGON(((-79.53050994...
     12 1243 5386 5 1369 MULTIPOLYGON(((-79.53050994...
     13 930 2074 4 1058 MULTIPOLYGON(((-78.74912261...
     14 613 1790 4 650 MULTIPOLYGON(((-78.80680084...
     15 1179 2753 6 1492 MULTIPOLYGON(((-78.49252319...
     16 2365 4463 17 2980 MULTIPOLYGON(((-77.33220672...
     17 622 2275 4 933 MULTIPOLYGON(((-76.29892730...
     18 200 3725 7 222 MULTIPOLYGON(((-81.02056884...
     19 17 1775 1 33 MULTIPOLYGON(((-81.80622100...
     20 230 676 0 310 MULTIPOLYGON(((-76.48052978...
     >
     > x <- st_sf(a = 1:2, geom = st_sfc(st_point(0:1), st_multipoint(matrix(1:4,2,2))))
     >
     > try(st_layers("foo")) # cannot open datasource
     Cannot open data source foo
     Error in CPL_get_layers(dsn, options, do_count) : Open failed.
    
     > try(st_read("foo")) # cannot open datasource
     Cannot open data source foo
     Error in CPL_read_ogr(dsn, layer, as.character(options), quiet, type, :
     Open failed.
    
     > try(st_read("x.gpkg", "xyz")) # cannot open layer
     Cannot open data source x.gpkg
     Error in CPL_read_ogr(dsn, layer, as.character(options), quiet, type, :
     Open failed.
    
     > try(st_write(c("foo", "bar")))
     Error : inherits(obj, "sf") is not TRUE
     > try(st_write(x, c("foo", "bar")))
     Error : length(dsn) == 1 is not TRUE
     In addition: Warning message:
     In if (file.exists(dsn)) dsn = normalizePath(dsn) :
     the condition has length > 1 and only the first element will be used
     > try(st_write(x, "foo", driver = "foo"))
     driver `foo' not available.
     Error in CPL_write_ogr(obj, dsn, layer, driver, as.character(dataset_options), :
     Driver not available.
    
     > if (Sys.getenv("USER") == "travis") {
     + try(st_write(x, "/x", driver = "ESRI Shapefile"))
     + }
     >
     > df <- data.frame(
     + a = c(0, 1, NA, -Inf, Inf),
     + b = c("a", "b", NA, "c", ""),
     + c = c(as.Date("2001-01-01"), NA, -99, 0, 1),
     + d = c(as.POSIXct("2001-01-01"), NA, -99, 0, 1),
     + x = 1:5,
     + y = 1:5)
     >
     > x = st_as_sf(df, coords = c("x", "y"))
     >
     > if ("GPKG" %in% st_drivers()$name) {
     + st_write(x, "x2.gpkg", quiet = TRUE)
     + y = st_read("x2.gpkg", quiet = TRUE)
     + print(y)
     + }
     Simple feature collection with 5 features and 4 fields
     geometry type: POINT
     dimension: XY
     bbox: xmin: 1 ymin: 1 xmax: 5 ymax: 5
     epsg (SRID): NA
     proj4string: NA
     a b c d geom
     1 0 a 2001-01-01 2001-01-01 00:00:00 POINT(1 1)
     2 1 b <NA> <NA> POINT(2 2)
     3 NA <NA> 1969-09-24 1969-12-31 23:58:21 POINT(3 3)
     4 -Inf c 1970-01-01 1970-01-01 00:00:00 POINT(4 4)
     5 Inf 1970-01-02 1970-01-01 00:00:01 POINT(5 5)
     Warning messages:
     1: In CPL_write_ogr(obj, dsn, layer, driver, as.character(dataset_options), :
     GDAL Error 6: Years < -32768 or > 32767 are not supported
     2: In CPL_write_ogr(obj, dsn, layer, driver, as.character(dataset_options), :
     GDAL Error 6: Years < -32768 or > 32767 are not supported
     >
     > if ("SQLite" %in% st_drivers()$name && require(RSQLite)) {
     + db = system.file("sqlite/meuse.sqlite", package = "sf")
     + dbcon <- dbConnect(dbDriver("SQLite"), db)
     + m = dbReadTable(dbcon, "meuse.sqlite")
     + m$GEOMETRY = st_as_sfc(m$GEOMETRY, spatialite = FALSE) # ISO wkb
     + print(st_sf(m), n = 3)
     +
     + db = system.file("sqlite/nc.sqlite", package = "sf")
     + dbcon <- dbConnect(dbDriver("SQLite"), db)
     + m = dbReadTable(dbcon, "nc.sqlite")
     + m$GEOMETRY = st_as_sfc(m$GEOMETRY, spatialite = FALSE) # ISO wkb
     + print(st_sf(m), n = 3)
     +
     + db = system.file("sqlite/test3.sqlite", package = "sf")
     + dbcon <- dbConnect(dbDriver("SQLite"), db)
     + m = dbReadTable(dbcon, "HighWays")
     + m$Geometry = st_as_sfc(m$Geometry, spatialite = TRUE) # spatialite wkb
     + print(st_sf(m), n = 3)
     + m = dbReadTable(dbcon, "Towns")
     + m$Geometry = st_as_sfc(m$Geometry, spatialite = TRUE) # spatialite wkb
     + print(st_sf(m), n = 3)
     + m = dbReadTable(dbcon, "Regions")
     + m$Geometry = st_as_sfc(m$Geometry, spatialite = TRUE) # spatialite wkb
     + print(st_sf(m), n = 3)
     + }
     Loading required package: RSQLite
     Simple feature collection with 155 features and 13 fields
     geometry type: POINT
     dimension: XY
     bbox: xmin: 178605 ymin: 329714 xmax: 181390 ymax: 333611
     epsg (SRID): NA
     proj4string: NA
     First 3 features:
     ogc_fid cadmium copper lead zinc elev dist om ffreq soil lime
     1 1 11.7 85 299 1022 7.909 0.00135803 13.6 1 1 1
     2 2 8.6 81 277 1141 6.983 0.01222430 14.0 1 1 1
     3 3 6.5 68 199 640 7.800 0.10302900 13.0 1 1 1
     landuse dist.m GEOMETRY
     1 Ah 50 POINT(181072 333611)
     2 Ah 30 POINT(181025 333558)
     3 Ah 150 POINT(181165 333537)
     Simple feature collection with 100 features and 15 fields
     geometry type: MULTIPOLYGON
     dimension: XY
     bbox: xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
     epsg (SRID): NA
     proj4string: NA
     First 3 features:
     ogc_fid area perimeter cnty_ cnty_id name fips fipsno cress_id bir74
     1 1 0.114 1.442 1825 1825 Ashe 37009 37009 5 1091
     2 2 0.061 1.231 1827 1827 Alleghany 37005 37005 3 487
     3 3 0.143 1.630 1828 1828 Surry 37171 37171 86 3188
     sid74 nwbir74 bir79 sid79 nwbir79 GEOMETRY
     1 1 10 1364 0 19 MULTIPOLYGON(((-81.47275543...
     2 0 10 542 3 12 MULTIPOLYGON(((-81.23989105...
     3 5 208 3616 6 260 MULTIPOLYGON(((-80.45634460...
     Error in CPL_read_wkb(x, EWKB, spatialite, endian = as.integer(.Platform$endian == :
     reading non-native endian spatialite geometries not supported
     Calls: st_as_sfc ... st_as_sfc -> st_as_sfc.WKB -> CPL_read_wkb -> .Call
     Execution halted
Flavor: r-patched-solaris-sparc

Version: 0.4-3
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: ‘RPostgreSQL’
Flavor: r-release-osx-x86_64