Last updated on 2026-03-21 21:53:16 CET.
| Package | ERROR | NOTE | OK |
|---|---|---|---|
| chopin | 2 | 3 | 9 |
Current CRAN status: ERROR: 2, NOTE: 3, OK: 9
Version: 0.9.9
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building 'v01_start.Rmd' using rmarkdown
--- finished re-building 'v01_start.Rmd'
--- re-building 'v02_good_practice.Rmd' using rmarkdown
--- finished re-building 'v02_good_practice.Rmd'
--- re-building 'v03_par_pad_grid.Rmd' using rmarkdown
--- re-building 'v04_climate_examples.Rmd' using rmarkdown
--- finished re-building 'v04_climate_examples.Rmd'
--- re-building 'v05_targets.Rmd' using rmarkdown
--- finished re-building 'v05_targets.Rmd'
SUMMARY: processing the following file failed:
'v03_par_pad_grid.Rmd'
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-windows-x86_64
Version: 0.9.9
Check: examples
Result: 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
Switch sf class to terra...
Flavor: r-release-windows-x86_64
Version: 0.9.9
Check: installed package size
Result: NOTE
installed size is 6.9Mb
sub-directories of 1Mb or more:
data 3.0Mb
extdata 2.9Mb
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64