- using R version 4.5.3 (2026-03-11 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'chopin/DESCRIPTION' ... OK
- this is package 'chopin' version '0.9.9-5'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'chopin' can be installed ... OK
See the install log for details.
- checking installed package size ... INFO
installed size is 5.9Mb
sub-directories of 1Mb or more:
data 2.0Mb
extdata 2.9Mb
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [8s] OK
- checking whether the package can be loaded with stated dependencies ... [8s] OK
- checking whether the package can be unloaded cleanly ... [8s] OK
- checking whether the namespace can be loaded with stated dependencies ... [8s] OK
- checking whether the namespace can be unloaded cleanly ... [8s] OK
- checking loading without being on the library search path ... [7s] OK
- checking whether startup messages can be suppressed ... [8s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [20s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of 'data' directory ... OK
- checking data for non-ASCII characters ... [2s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [29s] ERROR
Running examples in 'chopin-Ex.R' failed
The error most likely occurred in:
> ### Name: par_pad_grid
> ### Title: Get a set of computational grids
> ### Aliases: par_pad_grid
>
> ### ** Examples
>
> lastpar <- par(mfrow = c(1, 1))
> # data
> library(sf)
Linking to GEOS 3.14.1, GDAL 3.12.1, PROJ 9.7.1; sf_use_s2() is FALSE
> options(sf_use_s2 = FALSE)
> ncpath <- system.file("shape/nc.shp", package = "sf")
> nc <- read_sf(ncpath)
> nc <- st_transform(nc, "EPSG:5070")
>
> # run: nx and ny should strictly be integers
> nc_comp_region <-
+ par_pad_grid(
+ nc,
+ mode = "grid",
+ nx = 4L, ny = 2L,
+ padding = 10000
+ )
Switch sf class to terra...
Switch terra class to sf...
> par(mfcol = c(2, 3))
> plot(nc_comp_region$original$geometry, main = "Original grid")
> plot(nc_comp_region$padded$geometry, main = "Padded grid")
>
> nc_comp_region_wkt <-
+ par_pad_grid(
+ nc,
+ mode = "grid",
+ nx = 4L, ny = 2L,
+ padding = 10000,
+ return_wkt = TRUE
+ )
Switch sf class to terra...
Switch terra class to sf...
> nc_comp_region_wkt$original
[1] "POLYGON ((1054293 1348021, 1249094 1348021, 1249094 1518623, 1054293 1518623, 1054293 1348021))"
[2] "POLYGON ((1249094 1348021, 1443895 1348021, 1443895 1518623, 1249094 1518623, 1249094 1348021))"
[3] "POLYGON ((1443895 1348021, 1638695 1348021, 1638695 1518623, 1443895 1518623, 1443895 1348021))"
[4] "POLYGON ((1638695 1348021, 1833496 1348021, 1833496 1518623, 1638695 1518623, 1638695 1348021))"
[5] "POLYGON ((1054293 1518623, 1249094 1518623, 1249094 1689226, 1054293 1689226, 1054293 1518623))"
[6] "POLYGON ((1249094 1518623, 1443895 1518623, 1443895 1689226, 1249094 1689226, 1249094 1518623))"
[7] "POLYGON ((1443895 1518623, 1638695 1518623, 1638695 1689226, 1443895 1689226, 1443895 1518623))"
[8] "POLYGON ((1638695 1518623, 1833496 1518623, 1833496 1689226, 1638695 1689226, 1638695 1518623))"
> nc_comp_region_wkt$padded
[1] "POLYGON ((1044293 1338021, 1044293 1528623, 1259094 1528623, 1259094 1338021, 1044293 1338021))"
[2] "POLYGON ((1239094 1338021, 1239094 1528623, 1453895 1528623, 1453895 1338021, 1239094 1338021))"
[3] "POLYGON ((1433895 1338021, 1433895 1528623, 1648695 1528623, 1648695 1338021, 1433895 1338021))"
[4] "POLYGON ((1628695 1338021, 1628695 1528623, 1843496 1528623, 1843496 1338021, 1628695 1338021))"
[5] "POLYGON ((1044293 1508623, 1044293 1699226, 1259094 1699226, 1259094 1508623, 1044293 1508623))"
[6] "POLYGON ((1239094 1508623, 1239094 1699226, 1453895 1699226, 1453895 1508623, 1239094 1508623))"
[7] "POLYGON ((1433895 1508623, 1433895 1699226, 1648695 1699226, 1648695 1508623, 1433895 1508623))"
[8] "POLYGON ((1628695 1508623, 1628695 1699226, 1843496 1699226, 1843496 1508623, 1628695 1508623))"
>
> if (rlang::is_installed("h3r")) {
+ suppressWarnings(
+ nc_comp_region_h3 <-
+ par_pad_grid(
+ nc,
+ mode = "h3",
+ res = 4L,
+ padding = 10000
+ )
+ )
+ plot(nc_comp_region_h3$original$geometry, main = "H3 grid (lv.4)")
+ plot(nc_comp_region_h3$padded$geometry, main = "H3 padded grid (lv.4)")
+ }
Input sf object should be in WGS84 (EPSG:4326) CRS.
although coordinates are longitude/latitude, st_intersects assumes that they
are planar
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [112s] OK
- checking PDF version of manual ... [21s] OK
- checking HTML version of manual ... [8s] OK
- DONE
Status: 1 ERROR