Last updated on 2024-06-14 01:52:18 CEST.
Package | ERROR | NOTE | OK |
---|---|---|---|
gstat | 10 | 3 | |
hexbin | 1 | 12 | |
intervals | 13 | ||
lwgeom | 1 | 7 | 5 |
s2 | 1 | 12 | |
sf | 1 | 8 | 4 |
sp | 13 | ||
spacetime | 1 | 12 | |
stars | 1 | 12 | |
trajectories | 13 | ||
units | 1 | 12 | |
vardiag | 13 |
Current CRAN status: NOTE: 10, OK: 3
Version: 2.1-1
Check: Rd files
Result: NOTE
checkRd: (-1) jura.Rd:29: Lost braces; missing escapes or markup?
29 | \item{Cd}{ mg cadmium kg^{-1} topsoil }
| ^
checkRd: (-1) jura.Rd:30: Lost braces; missing escapes or markup?
30 | \item{Co}{ mg cobalt kg^{-1} topsoil }
| ^
checkRd: (-1) jura.Rd:31: Lost braces; missing escapes or markup?
31 | \item{Cr}{ mg chromium kg^{-1} topsoil }
| ^
checkRd: (-1) jura.Rd:32: Lost braces; missing escapes or markup?
32 | \item{Cu}{ mg copper kg^{-1} topsoil }
| ^
checkRd: (-1) jura.Rd:33: Lost braces; missing escapes or markup?
33 | \item{Ni}{ mg nickel kg^{-1} topsoil }
| ^
checkRd: (-1) jura.Rd:34: Lost braces; missing escapes or markup?
34 | \item{Pb}{ mg lead kg^{-1} topsoil }
| ^
checkRd: (-1) jura.Rd:35: Lost braces; missing escapes or markup?
35 | \item{Zn}{ mg zinc kg^{-1} topsoil }
| ^
checkRd: (-1) variogramST.Rd:49: Lost braces; missing escapes or markup?
49 | time lag $t$, the pseudo cross variogram $(Z_i(s)-Z_{i+t}(s+h))^2$ is averaged over all time
| ^
checkRd: (-1) variogramST.Rd:50: Lost braces; missing escapes or markup?
50 | lagged observation sets $Z_i$ and $Z_{i+t}$ available (weighted by the number of pairs involved).
| ^
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64
Current CRAN status: NOTE: 1, OK: 12
Version: 1.28.3
Check: package dependencies
Result: NOTE
Packages suggested but not available for checking:
'marray', 'affy', 'Biobase', 'limma'
Flavor: r-oldrel-macos-x86_64
Version: 1.28.3
Check: Rd cross-references
Result: NOTE
Package unavailable to check Rd xrefs: ‘limma’
Flavor: r-oldrel-macos-x86_64
Version: 1.28.3
Check: re-building of vignette outputs
Result: NOTE
Note: skipping ‘hexagon_binning.Rnw’ due to unavailable dependencies:
'marray'
Flavor: r-oldrel-macos-x86_64
Current CRAN status: OK: 13
Current CRAN status: ERROR: 1, NOTE: 7, OK: 5
Version: 0.2-14
Check: package dependencies
Result: NOTE
Package suggested but not available for checking: ‘testthat’
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.2-14
Check: tests
Result: ERROR
Running ‘azimuth.R’ [1s/1s]
Comparing ‘azimuth.Rout’ to ‘azimuth.Rout.save’ ... OK
Running ‘dist.R’ [1s/3s]
Comparing ‘dist.Rout’ to ‘dist.Rout.save’ ... OK
Running ‘geod.R’ [1s/2s]
Comparing ‘geod.Rout’ to ‘geod.Rout.save’ ... OK
Running ‘perimeter.R’ [1s/2s]
Comparing ‘perimeter.Rout’ to ‘perimeter.Rout.save’ ... OK
Running ‘testthat.R’ [0s/1s]
Running ‘twkb.R’ [1s/1s]
Comparing ‘twkb.Rout’ to ‘twkb.Rout.save’ ... OK
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
Error in library(testthat) : there is no package called 'testthat'
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.2-14
Check: installed package size
Result: NOTE
installed size is 30.6Mb
sub-directories of 1Mb or more:
gdal 3.0Mb
libs 19.0Mb
proj 8.4Mb
Flavors: r-devel-windows-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
Current CRAN status: ERROR: 1, NOTE: 12
Version: 1.1.6
Check: C++ specification
Result: NOTE
Specified C++11: please drop specification unless essential
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
Version: 1.1.6
Check: package dependencies
Result: NOTE
Packages suggested but not available for checking: 'testthat', 'vctrs'
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.1.6
Check: examples
Result: ERROR
Running examples in ‘s2-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: s2_plot
> ### Title: Plot S2 Geographies
> ### Aliases: s2_plot
>
> ### ** Examples
>
> s2_plot(s2_data_countries())
Error: Package 'vctrs' is required for wk_plot()
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.1.6
Check: tests
Result: ERROR
Running ‘area.R’ [0s/1s]
Comparing ‘area.Rout’ to ‘area.Rout.save’ ... OK
Running ‘testthat.R’ [0s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
Error in library(testthat) : there is no package called 'testthat'
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.1.6
Check: Rd cross-references
Result: NOTE
Undeclared package ‘sf’ in Rd xrefs
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 1.1.6
Check: installed package size
Result: NOTE
installed size is 5.9Mb
sub-directories of 1Mb or more:
libs 4.8Mb
Flavors: r-devel-windows-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
Current CRAN status: ERROR: 1, NOTE: 8, OK: 4
Version: 1.0-16
Check: package dependencies
Result: NOTE
Packages suggested but not available for checking:
'blob', 'dplyr', 'ggplot2', 'odbc', 'pillar', 'RPostgres', 'RSQLite',
'testthat', 'tibble', 'tidyr', 'tidyselect', 'tmap', 'vctrs'
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.0-16
Check: examples
Result: ERROR
Running examples in ‘sf-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: st_join
> ### Title: spatial join, spatial filter
> ### Aliases: st_join st_join.sf st_filter st_filter.sf
>
> ### ** Examples
>
> a = st_sf(a = 1:3,
+ geom = st_sfc(st_point(c(1,1)), st_point(c(2,2)), st_point(c(3,3))))
> b = st_sf(a = 11:14,
+ geom = st_sfc(st_point(c(10,10)), st_point(c(2,2)), st_point(c(2,2)), st_point(c(3,3))))
> st_join(a, b)
Simple feature collection with 4 features and 2 fields
Geometry type: POINT
Dimension: XY
Bounding box: xmin: 1 ymin: 1 xmax: 3 ymax: 3
CRS: NA
a.x a.y geom
1 1 NA POINT (1 1)
2 2 12 POINT (2 2)
2.1 2 13 POINT (2 2)
3 3 14 POINT (3 3)
> st_join(a, b, left = FALSE)
Simple feature collection with 3 features and 2 fields
Geometry type: POINT
Dimension: XY
Bounding box: xmin: 2 ymin: 2 xmax: 3 ymax: 3
CRS: NA
a.x a.y geom
2 2 12 POINT (2 2)
2.1 2 13 POINT (2 2)
3 3 14 POINT (3 3)
> # two ways to aggregate y's attribute values outcome over x's geometries:
> st_join(a, b) %>% aggregate(list(.$a.x), mean)
Simple feature collection with 3 features and 3 fields
Attribute-geometry relationships: aggregate (2), identity (1)
Geometry type: POINT
Dimension: XY
Bounding box: xmin: 1 ymin: 1 xmax: 3 ymax: 3
CRS: NA
Group.1 a.x a.y geometry
1 1 1 NA POINT (1 1)
2 2 2 12.5 POINT (2 2)
3 3 3 14.0 POINT (3 3)
> if (require(dplyr, quietly = TRUE)) {
+ st_join(a, b) %>% group_by(a.x) %>% summarise(mean(a.y))
+ }
> # example of largest = TRUE:
> nc <- st_transform(st_read(system.file("shape/nc.shp", package="sf")), 2264)
Reading layer `nc' from data source
`/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/sf/shape/nc.shp'
using driver `ESRI Shapefile'
Simple feature collection with 100 features and 14 fields
Geometry type: MULTIPOLYGON
Dimension: XY
Bounding box: xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
Geodetic CRS: NAD27
> gr = st_sf(
+ label = apply(expand.grid(1:10, LETTERS[10:1])[,2:1], 1, paste0, collapse = " "),
+ geom = st_make_grid(st_as_sfc(st_bbox(nc))))
> gr$col = sf.colors(10, categorical = TRUE, alpha = .3)
> # cut, to check, NA's work out:
> gr = gr[-(1:30),]
> nc_j <- st_join(nc, gr, largest = TRUE)
Warning: attribute variables are assumed to be spatially constant throughout all geometries
> # the two datasets:
> opar = par(mfrow = c(2,1), mar = rep(0,4))
> plot(st_geometry(nc_j))
> plot(st_geometry(gr), add = TRUE, col = gr$col)
> text(st_coordinates(st_centroid(gr)), labels = gr$label)
Warning: st_centroid assumes attributes are constant over geometries
> # the joined dataset:
> plot(st_geometry(nc_j), border = 'black', col = nc_j$col)
> text(st_coordinates(st_centroid(nc_j)), labels = nc_j$label, cex = .8)
Warning: st_centroid assumes attributes are constant over geometries
> plot(st_geometry(gr), border = 'green', add = TRUE)
> par(opar)
> # st_filter keeps the geometries in x where .predicate(x,y) returns any match in y for x
> st_filter(a, b)
Error in st_filter.sf(a, b) : dplyr is not installed: install first?
Calls: st_filter -> st_filter.sf
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
interpolate_aw 4.769 0.012 7.138
st_as_sf 4.435 0.086 6.321
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.0-16
Check: tests
Result: ERROR
Running ‘aggregate.R’ [1s/2s]
Comparing ‘aggregate.Rout’ to ‘aggregate.Rout.save’ ...4c4
< Linking to GEOS 3.12.1, GDAL 3.9.0, PROJ 9.4.1; sf_use_s2() is TRUE
---
> Linking to GEOS 3.12.1, GDAL 3.8.4, PROJ 9.3.1; sf_use_s2() is TRUE
Running ‘cast.R’ [1s/1s]
Running ‘crs.R’ [1s/2s]
Comparing ‘crs.Rout’ to ‘crs.Rout.save’ ...97,98d96
< MEMBER["World Geodetic System 1984 (G2296)",
< ID["EPSG",1383]],
139,140d136
< MEMBER["World Geodetic System 1984 (G2296)",
< ID["EPSG",1383]],
171d166
< MEMBER["World Geodetic System 1984 (G2296)"],
Running ‘dist.R’ [1s/2s]
Comparing ‘dist.Rout’ to ‘dist.Rout.save’ ... OK
Running ‘dplyr.R’ [1s/2s]
Comparing ‘dplyr.Rout’ to ‘dplyr.Rout.save’ ...114a115,128
>
> Attaching package: 'dplyr'
>
> The following objects are masked from 'package:stats':
>
> filter, lag
>
> The following objects are masked from 'package:base':
>
> intersect, setdiff, setequal, union
>
> [1] 4
> Warning message:
> plotting the first 10 out of 14 attributes; use max.plot = 14 to plot all
Running ‘empty.R’ [1s/2s]
Comparing ‘empty.Rout’ to ‘empty.Rout.save’ ... OK
Running ‘gdal_geom.R’ [2s/3s]
Comparing ‘gdal_geom.Rout’ to ‘gdal_geom.Rout.save’ ... OK
Running ‘geos.R’ [28s/37s]
Running ‘graticule.R’ [2s/3s]
Comparing ‘graticule.Rout’ to ‘graticule.Rout.save’ ... OK
Running ‘grid.R’ [2s/2s]
Comparing ‘grid.Rout’ to ‘grid.Rout.save’ ... OK
Running ‘maps.R’ [2s/3s]
Comparing ‘maps.Rout’ to ‘maps.Rout.save’ ... OK
Running ‘plot.R’ [1s/1s]
Comparing ‘plot.Rout’ to ‘plot.Rout.save’ ...124a125,136
>
> Attaching package: 'dplyr'
>
> The following objects are masked from 'package:stats':
>
> filter, lag
>
> The following objects are masked from 'package:base':
>
> intersect, setdiff, setequal, union
>
> There were 13 warnings (use warnings() to see them)
Running ‘read.R’ [2s/3s]
Running ‘roundtrip.R’ [2s/3s]
Comparing ‘roundtrip.Rout’ to ‘roundtrip.Rout.save’ ... OK
Running ‘s2.R’ [2s/3s]
Comparing ‘s2.Rout’ to ‘s2.Rout.save’ ... OK
Running ‘sample.R’ [1s/2s]
Comparing ‘sample.Rout’ to ‘sample.Rout.save’ ... OK
Running ‘sfc.R’ [12s/16s]
Comparing ‘sfc.Rout’ to ‘sfc.Rout.save’ ...144a145,150
> Simple feature collection with 2 features and 1 field
> Active geometry column: geom
> Geometry type: POINT
> Dimension: XY
> Bounding box: xmin: 0 ymin: 0 xmax: 1 ymax: 1
> CRS: NA
329c335
< "3.12.1" "3.9.0" "9.4.1"
---
> "3.12.1" "3.8.4" "9.3.1"
540a547,576
>
> Attaching package: 'dplyr'
>
> The following object is masked from 'package:testthat':
>
> matches
>
> The following objects are masked from 'package:stats':
>
> filter, lag
>
> The following objects are masked from 'package:base':
>
> intersect, setdiff, setequal, union
>
> Joining with `by = join_by(b)`
> Joining with `by = join_by(b)`
> Joining with `by = join_by(b)`
> Joining with `by = join_by(b)`
> Joining with `by = join_by(b)`
> Joining with `by = join_by(b)`
> Simple feature collection with 3 features and 4 fields
> Geometry type: POINT
> Dimension: XY
> Bounding box: xmin: 0 ymin: 0 xmax: 2 ymax: 2
> CRS: NA
> a b x geometry.y geometry.x
> 1 1 5 b 1 POINT (0 0)
> 2 2 6 c 1 POINT (1 1)
> 3 3 7 <NA> NA POINT (2 2)
731a768,775
> New names:
> • `AREA` -> `AREA...1`
> • `PERIMETER` -> `PERIMETER...2`
> • `CNTY_` -> `CNTY_...3`
> • `AREA` -> `AREA...16`
> • `PERIMETER` -> `PERIMETER...17`
> • `CNTY_` -> `CNTY_...18`
> [1] "sf" "data.frame"
771a816,822
>
> Attaching package: 'raster'
>
> The following object is masked from 'package:dplyr':
>
> select
>
Running ‘sfg.R’ [1s/1s]
Comparing ‘sfg.Rout’ to ‘sfg.Rout.save’ ... OK
Running ‘spatstat.R’ [3s/4s]
Running ‘stars.R’ [5s/7s]
Comparing ‘stars.Rout’ to ‘stars.Rout.save’ ... OK
Running ‘testthat.R’ [0s/1s]
Running ‘units.R’ [1s/2s]
Comparing ‘units.Rout’ to ‘units.Rout.save’ ... OK
Running ‘wkb.R’ [1s/2s]
Comparing ‘wkb.Rout’ to ‘wkb.Rout.save’ ... OK
Running the tests in ‘tests/cast.R’ failed.
Complete output:
> suppressPackageStartupMessages(library(sf))
> library(testthat)
Error in library(testthat) : there is no package called 'testthat'
Execution halted
Running the tests in ‘tests/geos.R’ failed.
Complete output:
> suppressPackageStartupMessages(library(sf))
> # nc = st_read(system.file("gpkg/nc.gpkg", package="sf"))
> nc = st_read(system.file("shape/nc.shp", package="sf"), quiet = TRUE)
> nc_checked = st_transform(nc, 32119, check = TRUE)
> ncm = st_transform(nc, 32119)
>
> x = st_transform(nc[1:10,], 32119)
> st_distance(x)
Units: [m]
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
[1,] 0.00 0.00 25651.99 440561.48 299772.34 361529.73 419671.66
[2,] 0.00 0.00 0.00 409429.44 268945.05 332590.52 388545.58
[3,] 25651.99 0.00 0.00 367556.52 227018.38 290298.04 346669.14
[4,] 440561.48 409429.44 367556.52 0.00 67226.86 45537.62 0.00
[5,] 299772.34 268945.05 227018.38 67226.86 0.00 0.00 46527.56
[6,] 361529.73 332590.52 290298.04 45537.62 0.00 0.00 30213.17
[7,] 419671.66 388545.58 346669.14 0.00 46527.56 30213.17 0.00
[8,] 384593.29 354295.06 312351.76 16130.19 11926.86 0.00 0.00
[9,] 262353.97 231217.73 189310.73 140455.97 0.00 64606.27 119564.00
[10,] 71138.53 41943.71 0.00 330752.58 190183.42 252373.26 309863.33
[,8] [,9] [,10]
[1,] 384593.29 262353.97 71138.53
[2,] 354295.06 231217.73 41943.71
[3,] 312351.76 189310.73 0.00
[4,] 16130.19 140455.97 330752.58
[5,] 11926.86 0.00 190183.42
[6,] 0.00 64606.27 252373.26
[7,] 0.00 119564.00 309863.33
[8,] 0.00 85533.33 275391.07
[9,] 85533.33 0.00 152489.45
[10,] 275391.07 152489.45 0.00
>
> st_is_valid(nc)
[1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[16] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[31] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[46] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[61] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[76] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[91] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
>
> st_is_empty(st_sfc(st_point(), st_linestring()))
[1] TRUE TRUE
>
> ops = c("intersects", #"disjoint",
+ "touches", "crosses", "within", "contains", "overlaps", "equals", "covers", "covered_by", "equals_exact")
> for (op in ops) {
+ x = sf:::st_geos_binop(op, ncm[1:50,], ncm[51:100,], 0, NA_character_, FALSE)
+ x = sf:::st_geos_binop(op, ncm[1:50,], ncm[51:100,], 0, NA_character_, TRUE)
+ }
>
> ops = c("intersects", #"disjoint",
+ "touches", "crosses", "within", "contains", "overlaps", "covers", "covered_by")
> df = data.frame(ops = ops)
> df$equal = NA
> for (op in ops)
+ df[df$ops == op, "equal"] = identical(
+ sf:::st_geos_binop(op, ncm[1:50,], ncm[51:100,], 0, NA_character_, TRUE, FALSE),
+ sf:::st_geos_binop(op, ncm[1:50,], ncm[51:100,], 0, NA_character_, TRUE, TRUE)
+ )
> df
ops equal
1 intersects TRUE
2 touches TRUE
3 crosses TRUE
4 within TRUE
5 contains TRUE
6 overlaps TRUE
7 covers TRUE
8 covered_by TRUE
>
> st_contains_properly(ncm[1:3,], ncm[1:3])
Sparse geometry binary predicate list of length 3, where the predicate
was `contains_properly'
1: (empty)
2: (empty)
3: (empty)
>
> st_combine(nc)
Geometry set for 1 feature
Geometry type: MULTIPOLYGON
Dimension: XY
Bounding box: xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
Geodetic CRS: NAD27
MULTIPOLYGON (((-81.47276 36.23436, -81.54084 3...
>
> st_dimension(st_sfc(st_point(0:1), st_linestring(rbind(c(0,0),c(1,1))),
+ st_polygon(list(rbind(c(0,0), c(1,0), c(1,1), c(0,1), c(0,0))))))
[1] 0 1 2
>
> ncbb = st_as_sfc(st_bbox(nc))
> g = st_make_grid(ncbb)
> x = st_intersection(nc, g)
Warning message:
attribute variables are assumed to be spatially constant throughout all geometries
> x = st_intersection(g, nc)
>
> ls = st_sfc(st_linestring(rbind(c(0,0),c(0,1))),
+ st_linestring(rbind(c(0,0),c(10,0))))
>
> suppressWarnings(RNGversion("3.5.3"))
> set.seed(13531)
>
> st_line_sample(ls, density = 1, type = "random")
Geometry set for 2 features
Geometry type: MULTIPOINT
Dimension: XY
Bounding box: xmin: 0 ymin: 0 xmax: 6.880179 ymax: 0.8878369
CRS: NA
MULTIPOINT ((0 0.8878369))
MULTIPOINT ((0.2986488 0), (2.48417 0), (2.5678...
>
> g = st_make_grid(ncbb, n = c(20,10))
>
> a1 = st_interpolate_aw(nc["BIR74"], g, FALSE)
Warning message:
In st_interpolate_aw.sf(nc["BIR74"], g, FALSE) :
st_interpolate_aw assumes attributes are constant or uniform over areas of x
> sum(a1$BIR74) / sum(nc$BIR74) # not close to one: property is assumed spatially intensive
[1] 1.436123
> a2 = st_interpolate_aw(nc["BIR74"], g, extensive = TRUE)
Warning message:
In st_interpolate_aw.sf(nc["BIR74"], g, extensive = TRUE) :
st_interpolate_aw assumes attributes are constant or uniform over areas of x
> sum(a2$BIR74) / sum(nc$BIR74)
[1] 1
>
> # missing x:
> g = st_make_grid(offset = c(0,0), cellsize = c(1,1), n = c(10,10))
> g = st_make_grid(what = "centers")
> length(g)
[1] 648
> g = st_make_grid(what = "corners")
> length(g)
[1] 703
>
> g1 = st_make_grid(ncbb, 0.1, what = "polygons", square = FALSE)
> g2 = st_make_grid(ncbb, 0.1, what = "points", square = FALSE)
>
> # st_line_merge:
> mls = st_multilinestring(list(rbind(c(0,0), c(1,1)), rbind(c(2,0), c(1,1))))
> st_line_merge(mls)
LINESTRING (0 0, 1 1, 2 0)
>
> if (isTRUE(try(compareVersion(sf_extSoftVersion()["GEOS"], "3.5.0") > -1, silent = TRUE))) {
+ # voronoi:
+ set.seed(1)
+ x = st_multipoint(matrix(runif(10),,2))
+ box = st_polygon(list(rbind(c(0,0),c(1,0),c(1,1),c(0,1),c(0,0))))
+ v = st_sfc(st_voronoi(x, st_sfc(box)))
+ plot(v, col = 0, border = 1, axes = TRUE)
+ plot(box, add = TRUE, col = 0, border = 1) # a larger box is returned, as documented
+ plot(x, add = TRUE, col = 'red', cex=2, pch=16)
+ plot(st_intersection(st_cast(v), box)) # clip to smaller box
+ plot(x, add = TRUE, col = 'red', cex=2, pch=16)
+
+ v = st_voronoi(x)
+ print(class(v))
+ v = st_sfc(st_voronoi(st_sfc(x)))
+ print(class(v))
+ v = st_voronoi(st_sf(a = 1, geom = st_sfc(x)))
+ print(class(v))
+ }
[1] "XY" "GEOMETRYCOLLECTION" "sfg"
[1] "sfc_GEOMETRYCOLLECTION" "sfc"
[1] "sf" "data.frame"
>
> i = st_intersects(ncm, ncm[1:88,])
> all.equal(i, t(t(i)))
[1] TRUE
>
> # check use of pattern in st_relate:
> sfc = st_as_sfc(st_bbox(st_sfc(st_point(c(0,0)), st_point(c(3,3)))))
> grd = st_make_grid(sfc, n = c(3,3))
> st_intersects(grd)
Sparse geometry binary predicate list of length 9, where the predicate
was `intersects'
1: 1, 2, 4, 5
2: 1, 2, 3, 4, 5, 6
3: 2, 3, 5, 6
4: 1, 2, 4, 5, 7, 8
5: 1, 2, 3, 4, 5, 6, 7, 8, 9
6: 2, 3, 5, 6, 8, 9
7: 4, 5, 7, 8
8: 4, 5, 6, 7, 8, 9
9: 5, 6, 8, 9
> st_relate(grd, pattern = "****1****")
Sparse geometry binary predicate list of length 9, where the predicate
was `relate_pattern'
1: 1, 2, 4
2: 1, 2, 3, 5
3: 2, 3, 6
4: 1, 4, 5, 7
5: 2, 4, 5, 6, 8
6: 3, 5, 6, 9
7: 4, 7, 8
8: 5, 7, 8, 9
9: 6, 8, 9
> st_relate(grd, pattern = "****0****")
Sparse geometry binary predicate list of length 9, where the predicate
was `relate_pattern'
1: 5
2: 4, 6
3: 5
4: 2, 8
5: 1, 3, 7, 9
6: 2, 8
7: 5
8: 4, 6
9: 5
> st_rook = function(a, b = a, ...) st_relate(a, b, pattern = "F***1****", ...)
> st_rook(grd, sparse = FALSE)
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]
[1,] FALSE TRUE FALSE TRUE FALSE FALSE FALSE FALSE FALSE
[2,] TRUE FALSE TRUE FALSE TRUE FALSE FALSE FALSE FALSE
[3,] FALSE TRUE FALSE FALSE FALSE TRUE FALSE FALSE FALSE
[4,] TRUE FALSE FALSE FALSE TRUE FALSE TRUE FALSE FALSE
[5,] FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE
[6,] FALSE FALSE TRUE FALSE TRUE FALSE FALSE FALSE TRUE
[7,] FALSE FALSE FALSE TRUE FALSE FALSE FALSE TRUE FALSE
[8,] FALSE FALSE FALSE FALSE TRUE FALSE TRUE FALSE TRUE
[9,] FALSE FALSE FALSE FALSE FALSE TRUE FALSE TRUE FALSE
>
> #if (Sys.getenv("USER") %in% c("edzer", "travis")) { # memory leaks:
> try(st_relate(st_point(), st_point(), pattern = "FF*FF****")) # error: use st_disjoint
Error : use st_disjoint for this pattern
> #}
>
> a = st_is_within_distance(nc[c(1:3,20),], nc[1:3,], 100000, sparse = FALSE)
> b = st_is_within_distance(nc[c(1:3,20),], nc[1:3,], units::set_units(100000, m), sparse = FALSE)
> all.equal(a, b)
[1] TRUE
> x = st_is_within_distance(nc[1:3,], nc[1:5,], 100000)
> y = st_is_within_distance(nc[1:3,], nc[1:5,], units::set_units(100, km))
> all.equal(x, y)
[1] TRUE
>
> nc_3857 = st_transform(nc, 3857)
> a = st_is_within_distance(nc_3857[c(1:3,20),], nc_3857[1:3,], 100000, sparse = FALSE)
> b = st_is_within_distance(nc_3857[c(1:3,20),], nc_3857[1:3,], units::set_units(100000, m), sparse = FALSE)
> all.equal(a, b)
[1] TRUE
> x = st_is_within_distance(nc_3857, nc_3857, 100000)
> y = st_is_within_distance(nc_3857, nc_3857, units::set_units(100, km))
> all.equal(x, y)
[1] TRUE
>
> pe = st_sfc(st_point())
> p = st_sfc(st_point(c(0,0)), st_point(c(0,1)), st_point(c(0,2)))
> st_distance(p, p)
[,1] [,2] [,3]
[1,] 0 1 2
[2,] 1 0 1
[3,] 2 1 0
> st_distance(p, pe)
[,1]
[1,] NA
[2,] NA
[3,] NA
> st_distance(p, p, by_element = TRUE)
[1] 0 0 0
> st_crs(p) = 4326
> st_distance(p, p[c(2,3,1)], by_element = TRUE)
Units: [m]
[1] 111195.1 111195.1 222390.2
> p = st_transform(p, 3587)
> st_distance(p, p[c(2,3,1)], by_element = TRUE)
Units: [m]
[1] 144589.5 142873.3 287462.8
>
> # from https://github.com/r-spatial/sf/issues/458 :
> pts <- st_sfc(st_point(c(.5,.5)), st_point(c(1.5, 1.5)), st_point(c(2.5, 2.5)))
> pol <- st_polygon(list(rbind(c(0,0), c(2,0), c(2,2), c(0,2), c(0,0))))
> pol_df <- data.frame(id = 1)
> st_geometry(pol_df) <- st_sfc(pol)
> st_intersects(pts, pol_df[pol_df$id == 2,]) # with empty sf/sfc
Sparse geometry binary predicate list of length 3, where the predicate
was `intersects'
1: (empty)
2: (empty)
3: (empty)
> st_intersects(pts, pol_df[pol_df$id == 2,], sparse = FALSE) # with empty sf/sfc
[1,]
[2,]
[3,]
>
> # st_node
> l = st_linestring(rbind(c(0,0), c(1,1), c(0,1), c(1,0), c(0,0)))
> st_node(l)
MULTILINESTRING ((0 0, 0.5 0.5), (0.5 0.5, 1 1, 0 1, 0.5 0.5), (0.5 0.5, 1 0, 0 0))
> st_node(st_sfc(l))
Geometry set for 1 feature
Geometry type: MULTILINESTRING
Dimension: XY
Bounding box: xmin: 0 ymin: 0 xmax: 1 ymax: 1
CRS: NA
MULTILINESTRING ((0 0, 0.5 0.5), (0.5 0.5, 1 1,...
> st_node(st_sf(a = 1, st_sfc(l)))
Simple feature collection with 1 feature and 1 field
Geometry type: MULTILINESTRING
Dimension: XY
Bounding box: xmin: 0 ymin: 0 xmax: 1 ymax: 1
CRS: NA
a st_sfc.l.
1 1 MULTILINESTRING ((0 0, 0.5 ...
>
> # print.sgbp:
> (lst = st_disjoint(nc, nc))
Sparse geometry binary predicate list of length 100, where the
predicate was `disjoint'
first 10 elements:
1: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ...
2: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, ...
3: 1, 4, 5, 6, 7, 8, 9, 11, 12, 13, ...
4: 1, 2, 3, 5, 6, 8, 9, 10, 11, 12, ...
5: 1, 2, 3, 4, 7, 8, 10, 11, 12, 13, ...
6: 1, 2, 3, 4, 7, 9, 10, 11, 12, 13, ...
7: 1, 2, 3, 5, 6, 9, 10, 11, 12, 13, ...
8: 1, 2, 3, 4, 5, 9, 10, 11, 12, 13, ...
9: 1, 2, 3, 4, 6, 7, 8, 10, 11, 12, ...
10: 1, 2, 4, 5, 6, 7, 8, 9, 11, 13, ...
> # dim.sgbp:
> dim(lst)
[1] 100 100
> # as.matrix.sgbp:
> as.matrix(lst)[1:5, 1:5]
[,1] [,2] [,3] [,4] [,5]
[1,] FALSE FALSE TRUE TRUE TRUE
[2,] FALSE FALSE FALSE TRUE TRUE
[3,] TRUE FALSE FALSE TRUE TRUE
[4,] TRUE TRUE TRUE FALSE TRUE
[5,] TRUE TRUE TRUE TRUE FALSE
> # negate:
> !lst
Sparse geometry binary predicate list of length 100, where the
predicate was `!disjoint'
first 10 elements:
1: 1, 2, 18, 19
2: 1, 2, 3, 18
3: 2, 3, 10, 18, 23, 25
4: 4, 7, 56
5: 5, 6, 9, 16, 28
6: 5, 6, 8, 28
7: 4, 7, 8, 17
8: 6, 7, 8, 17, 20, 21
9: 5, 9, 15, 16, 24, 31
10: 3, 10, 12, 25, 26
> # as.data.frame:
> head(as.data.frame(lst), 10)
row.id col.id
1 1 3
2 1 4
3 1 5
4 1 6
5 1 7
6 1 8
7 1 9
8 1 10
9 1 11
10 1 12
>
> # snap:
> nc1 = st_transform(nc, 32119)
> g = st_make_grid(nc1, c(5000,5000), what = "centers")
> s = st_snap(nc1[1:3,], g, 2501*sqrt(2))
> sfg = st_snap(st_geometry(nc1)[[1]], g, 2501*sqrt(2))
> sfg = st_snap(st_geometry(nc1)[[1]], st_combine(g), 2501*sqrt(2))
>
> # Hausdorff distance: http://geos.refractions.net/ro/doxygen_docs/html/classgeos_1_1algorithm_1_1distance_1_1DiscreteHausdorffDistance.html
> A = st_as_sfc("LINESTRING (0 0, 100 0, 10 100, 10 100)")
> B = st_as_sfc("LINESTRING (0 100, 0 10, 80 10)")
> st_distance(c(A,B))
[,1] [,2]
[1,] 0.000000 8.176236
[2,] 8.176236 0.000000
> st_distance(c(A,B), which = "Hausdorff")
[,1] [,2]
[1,] 0.00000 22.36068
[2,] 22.36068 0.00000
> st_distance(c(A,B), which = "Hausdorff", par = 0.001)
[,1] [,2]
[1,] 2.929643e-14 4.789000e+01
[2,] 4.789000e+01 2.131628e-14
> LE = st_as_sfc("LINESTRING EMPTY")
> st_distance(c(A, LE), which = "Hausdorff", par = 0.001)
[,1] [,2]
[1,] 2.929643e-14 NA
[2,] NA NA
>
> # one-argument st_intersection and st_difference:
> set.seed(131)
> m = rbind(c(0,0), c(1,0), c(1,1), c(0,1), c(0,0))
> p = st_polygon(list(m))
> n = 100
> l = vector("list", n)
> for (i in 1:n)
+ l[[i]] = p + 10 * runif(2)
> s = st_sfc(l)
> plot(s, col = sf.colors(categorical = TRUE, alpha = .5))
> d = st_difference(s) # sequential differences: s1, s2-s1, s3-s2-s1, ...
> plot(d, col = sf.colors(categorical = TRUE, alpha = .5))
> i = st_intersection(s) # all intersections
> plot(i, col = sf.colors(categorical = TRUE, alpha = .5))
> summary(lengths(st_overlaps(s, s)))
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.00 2.00 3.50 3.66 5.00 8.00
> summary(lengths(st_overlaps(d, d)))
Min. 1st Qu. Median Mean 3rd Qu. Max.
0 0 0 0 0 0
> summary(lengths(st_overlaps(i, i)))
Min. 1st Qu. Median Mean 3rd Qu. Max.
0 0 0 0 0 0
>
> sf = st_sf(s)
> i = st_intersection(sf) # all intersections
> plot(i["n.overlaps"])
> summary(i$n.overlaps - lengths(i$origins))
Min. 1st Qu. Median Mean 3rd Qu. Max.
0 0 0 0 0 0
>
> # st_nearest_points:
> pt1 = st_point(c(.1,.1))
> pt2 = st_point(c(.9,.9))
> b1 = st_buffer(pt1, 0.1)
> b2 = st_buffer(pt2, 0.1)
> plot(b1, xlim = c(0,1), ylim = c(0,1))
> plot(b2, add = TRUE)
> (ls0 = try(st_nearest_points(b1, b2))) # sfg
Geometry set for 1 feature
Geometry type: LINESTRING
Dimension: XY
Bounding box: xmin: 0.1707107 ymin: 0.1707107 xmax: 0.8292893 ymax: 0.8292893
CRS: NA
LINESTRING (0.1707107 0.1707107, 0.8292893 0.82...
> (ls = try(st_nearest_points(st_sfc(b1), st_sfc(b2)))) # sfc
Geometry set for 1 feature
Geometry type: LINESTRING
Dimension: XY
Bounding box: xmin: 0.1707107 ymin: 0.1707107 xmax: 0.8292893 ymax: 0.8292893
CRS: NA
LINESTRING (0.1707107 0.1707107, 0.8292893 0.82...
> (ls = try(st_nearest_points(st_sfc(b1), st_sfc(b2), pairwise = TRUE))) # sfc
Geometry set for 1 feature
Geometry type: LINESTRING
Dimension: XY
Bounding box: xmin: 0.1707107 ymin: 0.1707107 xmax: 0.8292893 ymax: 0.8292893
CRS: NA
LINESTRING (0.1707107 0.1707107, 0.8292893 0.82...
> identical(ls0, ls)
[1] TRUE
> # plot(ls, add = TRUE, col = 'red')
>
> nc = read_sf(system.file("gpkg/nc.gpkg", package="sf"))
Error in process_cpl_read_ogr(x, quiet, check_ring_dir = check_ring_dir, :
package tibble not available: install first?
Calls: read_sf ... st_read -> st_read.character -> process_cpl_read_ogr
Execution halted
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"
>
> # 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")
+ osm_l = st_layers(osm)
+ osm_lc = suppressWarnings(st_layers(osm, do_count = TRUE))
+ osm_r = suppressWarnings(st_read(osm, "multipolygons", quiet = TRUE))
+ }
>
> # 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
Bounding box: xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
Geodetic CRS: NAD27
First 10 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
NWBIR74 BIR79 SID79 NWBIR79 geometry
1 10 1364 0 19 MULTIPOLYGON (((-81.47276 3...
2 10 542 3 12 MULTIPOLYGON (((-81.23989 3...
3 208 3616 6 260 MULTIPOLYGON (((-80.45634 3...
4 123 830 2 145 MULTIPOLYGON (((-76.00897 3...
5 1066 1606 3 1197 MULTIPOLYGON (((-77.21767 3...
6 954 1838 5 1237 MULTIPOLYGON (((-76.74506 3...
7 115 350 2 139 MULTIPOLYGON (((-76.00897 3...
8 254 594 2 371 MULTIPOLYGON (((-76.56251 3...
9 748 1190 2 844 MULTIPOLYGON (((-78.30876 3...
10 160 2038 5 176 MULTIPOLYGON (((-80.02567 3...
>
> 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 : Open failed.
> try(st_read("foo")) # cannot open datasource
Error : Cannot open "foo"; The file doesn't seem to exist.
> try(st_read("x.gpkg", "xyz")) # cannot open layer
Error : Cannot open "x.gpkg"; The file doesn't seem to exist.
> try(st_write(c("foo", "bar")))
Error in UseMethod("st_write") :
no applicable method for 'st_write' applied to an object of class "character"
> try(st_write(x, c("foo", "bar")))
writing: substituting ENGCRS["Undefined Cartesian SRS with unknown unit"] for missing CRS
Error in guess_driver(dns) : length(dsn) == 1 is not TRUE
> try(st_write(x, "foo", driver = "foo"))
writing: substituting ENGCRS["Undefined Cartesian SRS with unknown unit"] for missing CRS
driver `foo' not available.
Error : Driver not available.
> if (Sys.getenv("USER") == "travis") {
+ try(st_write(x, "/x", driver = "ESRI Shapefile"))
+ st_write(x, "xxx.gpkg")
+ st_write(x, "xxx.gpkg", append = TRUE, quiet = FALSE) # appends to layer
+ y <- st_sf(b = 1:2, geom = st_sfc(st_point(0:1), st_multipoint(matrix(1:4,2,2))))
+ try(st_write(y, "xxx.gpkg"))
+ }
>
> geom = st_sfc(st_point(0:1), st_multipoint(matrix(1:4,2,2)))
> st_write(geom, "geom.gpkg")
writing: substituting ENGCRS["Undefined Cartesian SRS with unknown unit"] for missing CRS
Writing layer `geom' to data source `geom.gpkg' using driver `GPKG'
Writing 2 features with 0 fields and geometry type Unknown (any).
> st_write(geom, "geom1.gpkg", layer = "foo")
writing: substituting ENGCRS["Undefined Cartesian SRS with unknown unit"] for missing CRS
Writing layer `foo' to data source `geom1.gpkg' using driver `GPKG'
Writing 2 features with 0 fields and geometry type Unknown (any).
>
> df <- data.frame(
+ a = c(0, 1, NA, -Inf, Inf),
+ b = c("a", "b", NA, "c", ""),
+ c = c(as.Date("2001-01-01"),
+ as.Date(c(NA, -99, 0, 1), origin = "1970-01-01")),
+ d = c(as.POSIXct("2001-01-01"),
+ as.POSIXct(c(NA, -99, 0, 1), origin = "1970-01-01")),
+ 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)
+ }
writing: substituting ENGCRS["Undefined Cartesian SRS with unknown unit"] for missing CRS
Simple feature collection with 5 features and 4 fields
Geometry type: POINT
Dimension: XY
Bounding box: xmin: 1 ymin: 1 xmax: 5 ymax: 5
Projected CRS: Undefined Cartesian SRS with unknown unit
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)
>
> 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)
+ # or:
+ (s = st_read(dbcon, "meuse.sqlite"))[1:3,]
+ dbDisconnect(dbcon)
+
+ 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)
+ dbDisconnect(dbcon)
+
+ db = system.file("sqlite/b.sqlite", package = "sf") # has an INT8 field
+ b = st_read(db, quiet = TRUE)
+ print(b)
+ b = st_read(db, int64_as_string = TRUE, quiet = TRUE)
+ print(b)
+
+ if (.Platform$endian == "little") {
+ 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 = 1)
+ m = dbReadTable(dbcon, "Towns")
+ m$Geometry = st_as_sfc(m$Geometry, spatialite = TRUE) # spatialite wkb
+ print(st_sf(m), n = 1)
+ m = dbReadTable(dbcon, "Regions")
+ m$Geometry = st_as_sfc(m$Geometry, spatialite = TRUE) # spatialite wkb
+ print(st_sf(m), n = 1)
+ }
+ }
Loading required package: RSQLite
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called 'RSQLite'
>
> csv = system.file("csv/pt.csv", package = "sf")
> identical(st_read(quiet = TRUE, csv, options = "AUTODETECT_TYPE=Yes")$Int64[3], NA_real_)
[1] TRUE
> identical(st_read(quiet = TRUE, csv, int64_as_string = TRUE, stringsAsFactors = FALSE,
+ options = "AUTODETECT_TYPE=Yes")$Int64[3], NA_character_)
[1] TRUE
> identical(st_read(quiet = TRUE, csv, options = "AUTODETECT_TYPE=Yes")$Int32[3], NA_integer_)
[1] TRUE
>
> if ("GML" %in% st_drivers()$name) {
+ gml = system.file("gml/fmi_test.gml", package = "sf")
+ print(dim(st_read(gml, quiet = TRUE, use_stream = FALSE)))
+ gml = system.file("gml/20170930_OB_530964_UKSH.xml.gz", package = "sf")
+ print(dim(st_read(gml, layer = "Parcely", quiet = TRUE, use_stream = FALSE)))
+ print(dim(st_read(gml, layer = "Parcely", int64_as_string=TRUE, quiet = TRUE, use_stream = FALSE)))
+ }
[1] 22 11
[1] 644 25
[1] 644 25
Warning messages:
1: In CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
GDAL Message 1: Field with same name (identifier) already exists in (PointTimeSeriesObservation). Skipping newer ones
2: In CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
GDAL Message 1: Field with same name (name) already exists in (PointTimeSeriesObservation). Skipping newer ones
>
> # logical:
> if ("GPKG" %in% st_drivers()$name) {
+ tst = read_sf(system.file("gpkg/nc.gpkg", package="sf"), quiet = TRUE) # default layer name
+ tst$bool = tst$NWBIR79 > 800 # logical
+ tst$bool[1:3] = NA
+ write_sf(tst, "tst__.gpkg")
+ tst2 = read_sf("tst__.gpkg")
+ stopifnot(identical(tst$bool, tst2$bool))
+ }
Error in process_cpl_read_ogr(x, quiet, check_ring_dir = check_ring_dir, :
package tibble not available: install first?
Calls: read_sf ... st_read -> st_read.character -> process_cpl_read_ogr
Execution halted
Running the tests in ‘tests/spatstat.R’ failed.
Complete output:
> suppressPackageStartupMessages(library(sf))
> if (require(spatstat.random, quietly = TRUE)) {
+
+ data(chicago)
+ st_as_sf(chicago)
+ # ppp:
+ g = gorillas
+ st_as_sf(g)
+ marks(g) = NULL
+ st_as_sf(g)
+
+ # multipolygon: https://github.com/r-spatial/sf/issues/1161
+ window = read_sf(system.file("shape/nc.shp", package = "sf")) %>%
+ st_transform(32119)
+
+ win = spatstat.geom::as.owin(window)
+
+ set.seed(1331)
+ pp2a = runifpoint(n = 50, win = win)
+ print(st_as_sf(pp2a))
+
+ # st_sample going the spatstat way
+ x <- sf::st_sfc(sf::st_polygon(list(rbind(c(0, 0), c(10, 0), c(10, 10), c(0, 0)))))
+ try(pts <- st_sample(x, type = "thomas"))
+ try(pts <- st_sample(x, kappa = 1, mu = 10, type = "Thomas"))
+ # points expected
+ set.seed(1331)
+ pts <- st_sample(x, kappa = 1, mu = 10, scale = 0.1, type = "Thomas")
+ #plot(x)
+ #plot(pts, add = TRUE)
+ pts
+
+ # see https://github.com/r-spatial/sf/issues/1233
+ # png("/tmp/spa%03d.png")
+
+ p1 = st_point(0:1)
+ p2 = st_point(1:2)
+ p3 = st_point(c(-1,2))
+ p = st_sfc(p1, p2, p3)
+ as.ppp(p)
+ try(as.ppp(st_set_crs(p, 4326)))
+
+ sf = st_sf(geom = p)
+ try(as.ppp(sf))
+ sf = st_sf(a = 1:3, geom = p)
+ as.ppp(sf)
+ sf = st_sf(a = 1:3, b=3:1, geom = p)
+ as.ppp(sf) # warns
+
+ w = st_as_sfc(st_bbox(st_sfc(p1, p2)))
+ sf = st_sf(a = 1:3, geom = p)
+ (p0 = rbind(st_sf(a = 0, geom = w), sf))
+ suppressWarnings(try(as.ppp(p0))) # errors: one point outside window
+
+ w = st_as_sfc(st_bbox(p))
+ sf = st_sf(a = 1:3, geom = p)
+ (p0 = rbind(st_sf(a = 0, geom = w), sf))
+ as.ppp(p0)
+
+ # as.owin.sf, as.owin.sfc_*
+ nc = st_read(system.file("gpkg/nc.gpkg", package="sf"), check_ring_dir = TRUE, quiet = TRUE)
+ try(as.owin(nc)) # should be projected
+ nc = st_transform(nc, 32119)
+ plot(as.owin(nc), col = 'grey')
+ plot(as.owin(st_geometry(nc)), col = 'grey')
+
+ sq = rbind(c(-1,-1), c(1, -1), c(1,1), c(-1,1), c(-1,-1))
+ pol = st_polygon(list(0.5 * sq, sq[5:1,] * 0.45)) # w hole
+ plot(as.owin(pol), col = 'grey')
+ plot(as.owin(st_sfc(pol)), col = 'grey')
+ mpol = st_multipolygon(list(
+ list(sq, sq[5:1,] * 0.9),
+ list(sq * 2, sq[5:1,] * 1.8)))
+ plot(as.owin(mpol), col = 'grey')
+ plot(as.owin(st_sfc(mpol)), col = 'grey')
+ plot(as.owin(st_sfc(pol, mpol)), col = 'grey')
+ plot(as.owin(st_sf(a=1:2, st_sfc(pol, mpol))), col = 'grey')
+ (o = as.owin(st_sf(a=1:2, st_sfc(pol, mpol))))
+ st_as_sfc(o)
+
+ plot(st_as_sfc(o), col = 'blue', main = 'st_as_sfc(o)')
+ plot(st_as_sf(o), col = 'blue', main = 'st_as_sf(o)')
+
+ data(japanesepines)
+ st_as_sf(japanesepines) # warns about multiplier
+ jp = rescale(japanesepines)
+ st_as_sf(jp) # No warning
+
+ data(nztrees)
+ qNZ <- quadratcount(nztrees, nx=4, ny=3)
+ ts = as.tess(qNZ)
+ plot(st_as_sfc(ts))
+
+ ls = st_linestring(rbind(c(0,0), c(1,1), c(2,0)))
+ plot(as.psp(ls))
+ mls = st_multilinestring(list(rbind(c(0,0), c(1,1), c(2,0)), rbind(c(3,3), c(4,2))))
+ plot(as.psp(mls))
+
+ plot(as.psp(st_sfc(ls)))
+ plot(as.psp(st_sfc(mls)))
+ plot(as.psp(st_sfc(ls, mls)))
+
+ sf = st_sf(st_cast(st_sfc(ls, mls), "MULTILINESTRING"), marks = 1:2, foo = 2:1)
+ as.psp(sf) # picks marks itself
+ as.psp(sf, marks = 5:1)
+
+ (x = st_as_sf(as.psp(sf)))
+ (y = st_as_sfc(as.psp(sf)))
+ all.equal(st_geometry(x), y)
+ }
spatstat.geom 3.2-9
spatstat.random 3.2-3
Error in process_cpl_read_ogr(x, quiet, check_ring_dir = check_ring_dir, :
package tibble not available: install first?
Calls: %>% ... st_read -> st_read.character -> process_cpl_read_ogr
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.0-16
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘sf1.Rmd’ using rmarkdown
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf1_files/figure-html/unnamed-chunk-10-1.png
576x288 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 44433 bytes
Input file size = 44571 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 37636
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 37636
Output IDAT size = 37636 bytes (6797 bytes decrease)
Output file size = 37714 bytes (6857 bytes = 15.38% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf1_files/figure-html/unnamed-chunk-11-1.png
576x336 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 20614 bytes
Input file size = 20716 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 17636
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 17636
Output IDAT size = 17636 bytes (2978 bytes decrease)
Output file size = 17714 bytes (3002 bytes = 14.49% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf1_files/figure-html/unnamed-chunk-20-1.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 15495 bytes
Input file size = 15585 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 13456
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 13456
Output IDAT size = 13456 bytes (2039 bytes decrease)
Output file size = 13534 bytes (2051 bytes = 13.16% decrease)
Quitting from lines 466-467 [unnamed-chunk-26] (sf1.Rmd)
Error: processing vignette 'sf1.Rmd' failed with diagnostics:
package tibble not available: install first?
--- failed re-building ‘sf1.Rmd’
--- re-building ‘sf2.Rmd’ using rmarkdown
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf2_files/figure-html/unnamed-chunk-20-1.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 110258 bytes
Input file size = 110492 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 97613
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 97613
Output IDAT size = 97613 bytes (12645 bytes decrease)
Output file size = 97691 bytes (12801 bytes = 11.59% decrease)
--- finished re-building ‘sf2.Rmd’
--- re-building ‘sf3.Rmd’ using rmarkdown
Quitting from lines 42-47 [unnamed-chunk-2] (sf3.Rmd)
Error: processing vignette 'sf3.Rmd' failed with diagnostics:
there is no package called 'dplyr'
--- failed re-building ‘sf3.Rmd’
--- re-building ‘sf4.Rmd’ using rmarkdown
Quitting from lines 36-38 [unnamed-chunk-3] (sf4.Rmd)
Error: processing vignette 'sf4.Rmd' failed with diagnostics:
there is no package called 'dplyr'
--- failed re-building ‘sf4.Rmd’
--- re-building ‘sf5.Rmd’ using rmarkdown
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf5_files/figure-html/unnamed-chunk-1-1.png
288x288 pixels, 8 bits/pixel, 255 colors in palette
Reducing image to 8 bits/pixel, grayscale
Input IDAT size = 5204 bytes
Input file size = 6059 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 4744
zc = 9 zm = 8 zs = 1 f = 0 IDAT size = 4689
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 1 f = 0 IDAT size = 4689
Output IDAT size = 4689 bytes (515 bytes decrease)
Output file size = 4767 bytes (1292 bytes = 21.32% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf5_files/figure-html/unnamed-chunk-2-1.png
288x288 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 23378 bytes
Input file size = 23480 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 20786
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 20786
Output IDAT size = 20786 bytes (2592 bytes decrease)
Output file size = 20864 bytes (2616 bytes = 11.14% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf5_files/figure-html/unnamed-chunk-3-1.png
288x288 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 30922 bytes
Input file size = 31036 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 27240
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 27240
Output IDAT size = 27240 bytes (3682 bytes decrease)
Output file size = 27318 bytes (3718 bytes = 11.98% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf5_files/figure-html/unnamed-chunk-4-1.png
288x288 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 18370 bytes
Input file size = 18472 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 14706
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 14706
Output IDAT size = 14706 bytes (3664 bytes decrease)
Output file size = 14784 bytes (3688 bytes = 19.97% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf5_files/figure-html/unnamed-chunk-5-1.png
288x288 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 21148 bytes
Input file size = 21250 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 17445
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 17445
Output IDAT size = 17445 bytes (3703 bytes decrease)
Output file size = 17523 bytes (3727 bytes = 17.54% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf5_files/figure-html/unnamed-chunk-6-1.png
288x288 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 22470 bytes
Input file size = 22572 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 18590
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 18590
Output IDAT size = 18590 bytes (3880 bytes decrease)
Output file size = 18668 bytes (3904 bytes = 17.30% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf5_files/figure-html/unnamed-chunk-7-1.png
288x288 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 17657 bytes
Input file size = 17759 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 14554
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 14554
Output IDAT size = 14554 bytes (3103 bytes decrease)
Output file size = 14632 bytes (3127 bytes = 17.61% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf5_files/figure-html/unnamed-chunk-8-1.png
288x288 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 29904 bytes
Input file size = 30018 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 24373
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 24373
Output IDAT size = 24373 bytes (5531 bytes decrease)
Output file size = 24451 bytes (5567 bytes = 18.55% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf5_files/figure-html/unnamed-chunk-9-1.png
288x288 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 16502 bytes
Input file size = 16604 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 12629
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 12629
Output IDAT size = 12629 bytes (3873 bytes decrease)
Output file size = 12707 bytes (3897 bytes = 23.47% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf5_files/figure-html/unnamed-chunk-10-1.png
288x288 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 23118 bytes
Input file size = 23220 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 18564
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 18564
Output IDAT size = 18564 bytes (4554 bytes decrease)
Output file size = 18642 bytes (4578 bytes = 19.72% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf5_files/figure-html/unnamed-chunk-11-1.png
288x288 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 23179 bytes
Input file size = 23281 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 19109
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 19109
Output IDAT size = 19109 bytes (4070 bytes decrease)
Output file size = 19187 bytes (4094 bytes = 17.59% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf5_files/figure-html/unnamed-chunk-12-1.png
288x288 pixels, 8 bits/pixel, 256 colors in palette
Reducing image to 8 bits/pixel, grayscale
Input IDAT size = 8320 bytes
Input file size = 9190 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 7747
zc = 9 zm = 8 zs = 1 f = 0 IDAT size = 7619
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 1 f = 0 IDAT size = 7619
Output IDAT size = 7619 bytes (701 bytes decrease)
Output file size = 7697 bytes (1493 bytes = 16.25% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf5_files/figure-html/unnamed-chunk-13-1.png
288x288 pixels, 8 bits/pixel, 256 colors in palette
Reducing image to 8 bits/pixel, grayscale
Input IDAT size = 6615 bytes
Input file size = 7473 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 6136
zc = 9 zm = 8 zs = 1 f = 0 IDAT size = 6069
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 1 f = 0 IDAT size = 6069
Output IDAT size = 6069 bytes (546 bytes decrease)
Output file size = 6147 bytes (1326 bytes = 17.74% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf5_files/figure-html/unnamed-chunk-14-1.png
288x288 pixels, 8 bits/pixel, 256 colors in palette
Reducing image to 8 bits/pixel, grayscale
Input IDAT size = 6555 bytes
Input file size = 7413 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 5938
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 5938
Output IDAT size = 5938 bytes (617 bytes decrease)
Output file size = 6016 bytes (1397 bytes = 18.85% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf5_files/figure-html/unnamed-chunk-15-1.png
288x288 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 24976 bytes
Input file size = 25090 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 20075
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 20075
Output IDAT size = 20075 bytes (4901 bytes decrease)
Output file size = 20153 bytes (4937 bytes = 19.68% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf5_files/figure-html/unnamed-chunk-16-1.png
288x288 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 25908 bytes
Input file size = 26022 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 20049
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 20049
Output IDAT size = 20049 bytes (5859 bytes decrease)
Output file size = 20127 bytes (5895 bytes = 22.65% decrease)
Quitting from lines 163-165 [unnamed-chunk-18] (sf5.Rmd)
Error: processing vignette 'sf5.Rmd' failed with diagnostics:
there is no package called 'ggplot2'
--- failed re-building ‘sf5.Rmd’
--- re-building ‘sf6.Rmd’ using rmarkdown
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf6_files/figure-html/unnamed-chunk-3-1.png
576x432 pixels, 8 bits/pixel, 256 colors in palette
Reducing image to 8 bits/pixel, grayscale
Input IDAT size = 16643 bytes
Input file size = 17525 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 15584
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0 IDAT size = 15235
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 3 f = 0 IDAT size = 15235
Output IDAT size = 15235 bytes (1408 bytes decrease)
Output file size = 15313 bytes (2212 bytes = 12.62% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/vign_test/sf/vignettes/sf6_files/figure-html/unnamed-chunk-3-2.png
576x432 pixels, 8 bits/pixel, 253 colors in palette
Reducing image to 8 bits/pixel, grayscale
Input IDAT size = 9840 bytes
Input file size = 10701 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 8935
zc = 9 zm = 8 zs = 1 f = 0 IDAT size = 8902
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0 IDAT size = 8827
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 3 f = 0 IDAT size = 8827
Output IDAT size = 8827 bytes (1013 bytes decrease)
Output file size = 8905 bytes (1796 bytes = 16.78% decrease)
--- finished re-building ‘sf6.Rmd’
--- re-building ‘sf7.Rmd’ using rmarkdown
Quitting from lines 143-148 [unnamed-chunk-5] (sf7.Rmd)
Error: processing vignette 'sf7.Rmd' failed with diagnostics:
package tibble not available: install first?
--- failed re-building ‘sf7.Rmd’
SUMMARY: processing the following files failed:
‘sf1.Rmd’ ‘sf3.Rmd’ ‘sf4.Rmd’ ‘sf5.Rmd’ ‘sf7.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.0-16
Check: installed package size
Result: NOTE
installed size is 7.5Mb
sub-directories of 1Mb or more:
doc 1.7Mb
libs 1.1Mb
sqlite 1.5Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
Current CRAN status: OK: 13
Current CRAN status: NOTE: 1, OK: 12
Version: 1.3-1
Check: package dependencies
Result: NOTE
Package suggested but not available for checking: ‘cshapes’
Flavor: r-devel-linux-x86_64-debian-gcc
Current CRAN status: ERROR: 1, NOTE: 12
Version: 0.6-5
Check: package dependencies
Result: NOTE
Package suggested but not available for checking: ‘starsdata’
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
Version: 0.6-5
Check: package dependencies
Result: NOTE
Packages suggested but not available for checking:
'OpenStreetMap', 'cubble', 'cubelyr', 'dplyr', 'ggforce', 'ggplot2',
'ggthemes', 'ncdfgeom', 'ncmeta', 'starsdata', 'testthat', 'tibble',
'tidyr', 'tsibble', 'viridis'
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.6-5
Check: tests
Result: ERROR
Running ‘aggregate.R’ [11s/20s]
Comparing ‘aggregate.Rout’ to ‘aggregate.Rout.save’ ... OK
Running ‘align.R’ [2s/3s]
Comparing ‘align.Rout’ to ‘align.Rout.save’ ... OK
Running ‘area.R’ [1s/2s]
Comparing ‘area.Rout’ to ‘area.Rout.save’ ... OK
Running ‘crop.R’ [5s/8s]
Comparing ‘crop.Rout’ to ‘crop.Rout.save’ ... OK
Running ‘curvilinear.R’ [1s/2s]
Comparing ‘curvilinear.Rout’ to ‘curvilinear.Rout.save’ ... OK
Running ‘datasets.R’ [1s/3s]
Comparing ‘datasets.Rout’ to ‘datasets.Rout.save’ ... OK
Running ‘dimensions.R’ [3s/4s]
Comparing ‘dimensions.Rout’ to ‘dimensions.Rout.save’ ... OK
Running ‘downsample.R’ [1s/3s]
Comparing ‘downsample.Rout’ to ‘downsample.Rout.save’ ... OK
Running ‘ee.R’ [1s/2s]
Comparing ‘ee.Rout’ to ‘ee.Rout.save’ ... OK
Running ‘extract.R’ [1s/2s]
Comparing ‘extract.Rout’ to ‘extract.Rout.save’ ... OK
Running ‘gridtypes.R’ [1s/2s]
Comparing ‘gridtypes.Rout’ to ‘gridtypes.Rout.save’ ... OK
Running ‘mdim.R’ [1s/2s]
Comparing ‘mdim.Rout’ to ‘mdim.Rout.save’ ... OK
Running ‘nc.R’ [1s/1s]
Running ‘plot.R’ [3s/4s]
Running ‘predict.R’ [4s/7s]
Comparing ‘predict.Rout’ to ‘predict.Rout.save’ ... OK
Running ‘proxy.R’ [3s/5s]
Comparing ‘proxy.Rout’ to ‘proxy.Rout.save’ ... OK
Running ‘raster.R’ [11s/19s]
Comparing ‘raster.Rout’ to ‘raster.Rout.save’ ... OK
Running ‘rasterize.R’ [1s/2s]
Running ‘rectilinear.R’ [2s/3s]
Comparing ‘rectilinear.Rout’ to ‘rectilinear.Rout.save’ ... OK
Running ‘redimension.R’ [2s/2s]
Comparing ‘redimension.Rout’ to ‘redimension.Rout.save’ ... OK
Running ‘sf.R’ [2s/3s]
Comparing ‘sf.Rout’ to ‘sf.Rout.save’ ... OK
Running ‘sp.R’ [2s/3s]
Comparing ‘sp.Rout’ to ‘sp.Rout.save’ ... OK
Running ‘spacetime.R’ [3s/4s]
Comparing ‘spacetime.Rout’ to ‘spacetime.Rout.save’ ... OK
Running ‘spatstat.R’ [3s/5s]
Comparing ‘spatstat.Rout’ to ‘spatstat.Rout.save’ ... OK
Running ‘stars.R’ [9s/12s]
Comparing ‘stars.Rout’ to ‘stars.Rout.save’ ... OK
Running ‘subset.R’ [2s/2s]
Comparing ‘subset.Rout’ to ‘subset.Rout.save’ ... OK
Running ‘testthat.R’ [0s/1s]
Running ‘tidy.R’ [1s/1s]
Comparing ‘tidy.Rout’ to ‘tidy.Rout.save’ ...30a31,54
>
> Attaching package: 'dplyr'
>
> The following objects are masked from 'package:stats':
>
> filter, lag
>
> The following objects are masked from 'package:base':
>
> intersect, setdiff, setequal, union
>
> Error in Ops.units(X[[i]], ...) :
> both operands of the expression should be "units" objects
> Error in Ops.units(X[[i]], ...) :
> both operands of the expression should be "units" objects
> stars object with 3 dimensions and 1 attribute
> attribute(s):
> Min. 1st Qu. Median Mean 3rd Qu. Max.
> L7_ETMs.tif [°C] -184 -19 -8 -10.2353 0 131
> dimension(s):
> from to offset delta refsys point x/y
> x 1 349 288776 28.5 SIRGAS 2000 / UTM zone 25S FALSE [x]
> y 1 352 9120761 -28.5 SIRGAS 2000 / UTM zone 25S FALSE [y]
> band 1 6 NA NA NA NA
Running ‘transform.R’ [2s/2s]
Comparing ‘transform.Rout’ to ‘transform.Rout.save’ ...40c40
< Linking to liblwgeom 3.0.0beta1 r16016, GEOS 3.12.1, PROJ 9.4.1
---
> Linking to liblwgeom 3.0.0beta1 r16016, GEOS 3.12.1, PROJ 9.3.1
Running ‘warp.R’ [3s/3s]
Comparing ‘warp.Rout’ to ‘warp.Rout.save’ ... OK
Running ‘write.R’ [2s/2s]
Comparing ‘write.Rout’ to ‘write.Rout.save’ ... OK
Running the tests in ‘tests/nc.R’ failed.
Complete output:
> # examples with the sf::nc polygon dataset NOT ABOUT NETCDF's, see e.g. stars.R netcdf.R
> suppressPackageStartupMessages(library(sf))
> nc = read_sf(system.file("gpkg/nc.gpkg", package="sf"))
Error in process_cpl_read_ogr(x, quiet, check_ring_dir = check_ring_dir, :
package tibble not available: install first?
Calls: read_sf ... st_read -> st_read.character -> process_cpl_read_ogr
Execution halted
Running the tests in ‘tests/plot.R’ failed.
Complete output:
> suppressPackageStartupMessages(library(stars))
> if (suppressPackageStartupMessages(require(sp, quietly = TRUE)) && require(spacetime, quietly = TRUE)) {
+ data(air) # this loads several datasets in .GlobalEnv
+ dim(air)
+ d = st_dimensions(station = st_as_sfc(stations), time = dates)
+ aq = st_as_stars(list(PM10 = air), dimensions = d)
+ image(aperm(log(aq), 2:1), main = "NA pattern (white) in PM10 station time series")
+ st_geometry(aq)
+ }
Geometry set for 70 features
Geometry type: POINT
Dimension: XY
Bounding box: xmin: 6.28107 ymin: 47.80847 xmax: 14.78617 ymax: 54.92497
Geodetic CRS: +proj=longlat +datum=WGS84 +no_defs
First 5 geometries:
POINT (9.585911 53.67057)
POINT (9.68503 53.52418)
POINT (9.791584 54.07312)
POINT (13.64701 52.44775)
POINT (13.29635 52.65315)
>
> csv = system.file("tif/ESACCI-LC-Legend.csv", package = "starsdata")
> if (csv != "") {
+ rgb = read.csv(csv, header = TRUE, sep = ";")
+ luc = read_stars(system.file("tif/LUC3.tif", package = "starsdata"))
+ plot(luc, rgb = rgb, axes = TRUE, key.pos = NULL)
+ }
>
> # https://github.com/r-spatial/stars/issues/233 :
> nc = read_sf(system.file("shape/nc.shp", package = "sf"))
Error in process_cpl_read_ogr(x, quiet, check_ring_dir = check_ring_dir, :
package tibble not available: install first?
Calls: read_sf ... st_read -> st_read.character -> process_cpl_read_ogr
Execution halted
Running the tests in ‘tests/rasterize.R’ failed.
Complete output:
> suppressPackageStartupMessages(library(stars))
> nc = read_sf(system.file("gpkg/nc.gpkg", package="sf"))
Error in process_cpl_read_ogr(x, quiet, check_ring_dir = check_ring_dir, :
package tibble not available: install first?
Calls: read_sf ... st_read -> st_read.character -> process_cpl_read_ogr
Execution halted
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> ## load dependencies
> library(testthat)
Error in library(testthat) : there is no package called 'testthat'
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.6-5
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘stars1.Rmd’ using rmarkdown
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars1_files/figure-html/unnamed-chunk-3-1.png
576x432 pixels, 8 bits/pixel, 255 colors in palette
Reducing image to 8 bits/pixel, grayscale
Input IDAT size = 57709 bytes
Input file size = 58648 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 56419
zc = 9 zm = 8 zs = 1 f = 0 IDAT size = 54476
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 1 f = 0 IDAT size = 54476
Output IDAT size = 54476 bytes (3233 bytes decrease)
Output file size = 54554 bytes (4094 bytes = 6.98% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars1_files/figure-html/unnamed-chunk-10-1.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 22514 bytes
Input file size = 22616 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 19970
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 19970
Output IDAT size = 19970 bytes (2544 bytes decrease)
Output file size = 20048 bytes (2568 bytes = 11.35% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars1_files/figure-html/unnamed-chunk-11-1.png
576x432 pixels, 8 bits/pixel, 12 colors in palette
Reducing image to 4 bits/pixel, 12 colors in palette
Input IDAT size = 6087 bytes
Input file size = 6213 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 4809
zc = 9 zm = 8 zs = 1 f = 0 IDAT size = 4799
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 1 f = 0 IDAT size = 4799
Output IDAT size = 4799 bytes (1288 bytes decrease)
Output file size = 4925 bytes (1288 bytes = 20.73% decrease)
Quitting from lines 182-184 [unnamed-chunk-14] (stars1.Rmd)
Error: processing vignette 'stars1.Rmd' failed with diagnostics:
package ncmeta required, please install it first
--- failed re-building ‘stars1.Rmd’
--- re-building ‘stars2.Rmd’ using rmarkdown
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars2_files/figure-html/unnamed-chunk-5-1.png
576x432 pixels, 8 bits/pixel, 246 colors in palette
Reducing image to 8 bits/pixel, grayscale
Input IDAT size = 4896 bytes
Input file size = 5724 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 3273
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5 IDAT size = 3165
zc = 9 zm = 8 zs = 1 f = 5 IDAT size = 3143
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 1 f = 5 IDAT size = 3143
Output IDAT size = 3143 bytes (1753 bytes decrease)
Output file size = 3221 bytes (2503 bytes = 43.73% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars2_files/figure-html/unnamed-chunk-6-1.png
576x432 pixels, 8 bits/pixel, 238 colors in palette
Reducing image to 8 bits/pixel, grayscale
Input IDAT size = 4432 bytes
Input file size = 5236 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 3658
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 3658
Output IDAT size = 3658 bytes (774 bytes decrease)
Output file size = 3736 bytes (1500 bytes = 28.65% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars2_files/figure-html/unnamed-chunk-17-1.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 11682 bytes
Input file size = 11772 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 10534
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 10534
Output IDAT size = 10534 bytes (1148 bytes decrease)
Output file size = 10612 bytes (1160 bytes = 9.85% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars2_files/figure-html/unnamed-chunk-17-2.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 12068 bytes
Input file size = 12158 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 10850
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 10850
Output IDAT size = 10850 bytes (1218 bytes decrease)
Output file size = 10928 bytes (1230 bytes = 10.12% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars2_files/figure-html/unnamed-chunk-17-3.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 13713 bytes
Input file size = 13803 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 12104
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 12104
Output IDAT size = 12104 bytes (1609 bytes decrease)
Output file size = 12182 bytes (1621 bytes = 11.74% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars2_files/figure-html/unnamed-chunk-19-1.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 12293 bytes
Input file size = 12383 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 10723
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 10723
Output IDAT size = 10723 bytes (1570 bytes decrease)
Output file size = 10801 bytes (1582 bytes = 12.78% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars2_files/figure-html/unnamed-chunk-20-1.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 13552 bytes
Input file size = 13642 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 11708
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 11708
Output IDAT size = 11708 bytes (1844 bytes decrease)
Output file size = 11786 bytes (1856 bytes = 13.61% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars2_files/figure-html/unnamed-chunk-21-1.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 11682 bytes
Input file size = 11772 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 10534
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 10534
Output IDAT size = 10534 bytes (1148 bytes decrease)
Output file size = 10612 bytes (1160 bytes = 9.85% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars2_files/figure-html/unnamed-chunk-21-2.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 31931 bytes
Input file size = 32045 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 26496
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 26496
Output IDAT size = 26496 bytes (5435 bytes decrease)
Output file size = 26574 bytes (5471 bytes = 17.07% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars2_files/figure-html/unnamed-chunk-21-3.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 58115 bytes
Input file size = 58277 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 45785
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 45785
Output IDAT size = 45785 bytes (12330 bytes decrease)
Output file size = 45863 bytes (12414 bytes = 21.30% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars2_files/figure-html/unnamed-chunk-22-1.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 18407 bytes
Input file size = 18509 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 15955
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 15955
Output IDAT size = 15955 bytes (2452 bytes decrease)
Output file size = 16033 bytes (2476 bytes = 13.38% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars2_files/figure-html/unnamed-chunk-22-2.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 17759 bytes
Input file size = 17861 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 15137
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 15137
Output IDAT size = 15137 bytes (2622 bytes decrease)
Output file size = 15215 bytes (2646 bytes = 14.81% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars2_files/figure-html/unnamed-chunk-23-1.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 73204 bytes
Input file size = 73378 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 59071
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 59071
Output IDAT size = 59071 bytes (14133 bytes decrease)
Output file size = 59149 bytes (14229 bytes = 19.39% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars2_files/figure-html/unnamed-chunk-23-2.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 29233 bytes
Input file size = 29347 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 23957
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 23957
Output IDAT size = 23957 bytes (5276 bytes decrease)
Output file size = 24035 bytes (5312 bytes = 18.10% decrease)
--- finished re-building ‘stars2.Rmd’
--- re-building ‘stars3.Rmd’ using rmarkdown
Quitting from lines 25-27 [unnamed-chunk-1] (stars3.Rmd)
Error: processing vignette 'stars3.Rmd' failed with diagnostics:
there is no package called 'dplyr'
--- failed re-building ‘stars3.Rmd’
--- re-building ‘stars4.Rmd’ using rmarkdown
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars4_files/figure-html/unnamed-chunk-3-1.png
432x384 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 11219 bytes
Input file size = 11309 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 9488
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 9488
Output IDAT size = 9488 bytes (1731 bytes decrease)
Output file size = 9566 bytes (1743 bytes = 15.41% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars4_files/figure-html/unnamed-chunk-4-1.png
432x384 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 11270 bytes
Input file size = 11360 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 9544
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 9544
Output IDAT size = 9544 bytes (1726 bytes decrease)
Output file size = 9622 bytes (1738 bytes = 15.30% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars4_files/figure-html/unnamed-chunk-7-1.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 19717 bytes
Input file size = 19819 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 16223
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 16223
Output IDAT size = 16223 bytes (3494 bytes decrease)
Output file size = 16301 bytes (3518 bytes = 17.75% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars4_files/figure-html/unnamed-chunk-9-1.png
576x432 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 18253 bytes
Input file size = 18355 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 15268
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 15268
Output IDAT size = 15268 bytes (2985 bytes decrease)
Output file size = 15346 bytes (3009 bytes = 16.39% decrease)
** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/stars.Rcheck/vign_test/stars/vignettes/stars4_files/figure-html/unnamed-chunk-11-1.png
576x432 pixels, 8 bits/pixel, 246 colors in palette
Reducing image to 8 bits/pixel, grayscale
Input IDAT size = 3816 bytes
Input file size = 4644 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 3216
zc = 9 zm = 8 zs = 1 f = 0 IDAT size = 3216
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 1 f = 0 IDAT size = 3216
Output IDAT size = 3216 bytes (600 bytes decrease)
Output file size = 3294 bytes (1350 bytes = 29.07% decrease)
--- finished re-building ‘stars4.Rmd’
--- re-building ‘stars5.Rmd’ using rmarkdown
Quitting from lines 27-34 [unnamed-chunk-1] (stars5.Rmd)
Error: processing vignette 'stars5.Rmd' failed with diagnostics:
package tibble not available: install first?
--- failed re-building ‘stars5.Rmd’
--- re-building ‘stars6.Rmd’ using rmarkdown
Quitting from lines 14-18 [unnamed-chunk-1] (stars6.Rmd)
Error: processing vignette 'stars6.Rmd' failed with diagnostics:
there is no package called 'dplyr'
--- failed re-building ‘stars6.Rmd’
--- re-building ‘stars7.Rmd’ using rmarkdown
--- finished re-building ‘stars7.Rmd’
--- re-building ‘stars8.Rmd’ using rmarkdown
Quitting from lines 14-19 [unnamed-chunk-1] (stars8.Rmd)
Error: processing vignette 'stars8.Rmd' failed with diagnostics:
there is no package called 'dplyr'
--- failed re-building ‘stars8.Rmd’
SUMMARY: processing the following files failed:
‘stars1.Rmd’ ‘stars3.Rmd’ ‘stars5.Rmd’ ‘stars6.Rmd’ ‘stars8.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.6-5
Check: installed package size
Result: NOTE
installed size is 6.4Mb
sub-directories of 1Mb or more:
doc 2.4Mb
nc 1.8Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
Current CRAN status: NOTE: 13
Version: 0.2-8
Check: package dependencies
Result: NOTE
Package suggested but not available for checking: ‘taxidata’
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
Version: 0.2-8
Check: package dependencies
Result: NOTE
Packages suggested but not available for checking:
'OpenStreetMap', 'forecast', 'taxidata'
Flavor: r-devel-linux-x86_64-debian-gcc
Current CRAN status: ERROR: 1, OK: 12
Version: 0.8-5
Check: package dependencies
Result: NOTE
Packages suggested but not available for checking:
'pillar', 'dplyr', 'vctrs', 'ggplot2', 'testthat', 'vdiffr'
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.8-5
Check: tests
Result: ERROR
Running ‘testthat.R’ [0s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
Error in library(testthat) : there is no package called 'testthat'
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Current CRAN status: OK: 13