Running examples in ‘rasterDT-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: fasterizeDT
> ### Title: Polygon Rasterization Using Numeric, Factor, or Character Fields
> ### Aliases: fasterizeDT
> 
> ### ** Examples
> 
> ## Load example polygons and prepare a template raster
> SPDF <- rgdal::readOGR(system.file("external", package = "raster"), "lux")
OGR data source with driver: ESRI Shapefile 
Source: "/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/raster/external", layer: "lux"
with 12 features
It has 5 fields
> llratio <- 1/cos(pi * mean(coordinates(SPDF)[, 2])/180)
> rr <- raster(extent(SPDF),
+              resolution = c(llratio * 0.01, 0.01),
+              crs = proj4string(SPDF))
Warning in proj4string(SPDF) :
  CRS object has comment, which is lost in output
> 
> ## An integer-valued field produces a numeric raster
> rInt <- fasterizeDT(SPDF, rr, field = "ID_2")
> plot(rInt, col = colorRampPalette(blues9)(12))
> 
> ## A character-valued field returns a factor raster
> rFac <- fasterizeDT(SPDF, rr, field = "NAME_2")
> if (require(rasterVis)) {
+     levelplot(rFac)
+ }
Loading required package: rasterVis
Loading required package: terra
terra version 1.4.9

Attaching package: ‘terra’

The following objects are masked from ‘package:data.table’:

    copy, shift

The following objects are masked from ‘package:raster’:

    RGB, adjacent, animate, area, boundaries, buffer, cellFromRowCol,
    cellFromRowColCombine, cellFromXY, clamp, click, colFromCell,
    colFromX, cover, crop, crosstab, crs, crs<-, distance, erase,
    extend, extract, flip, focal, freq, geom, hasValues, inMemory,
    init, interpolate, mask, modal, mosaic, ncell, ncol<-, nrow<-,
    origin, origin<-, plotRGB, rasterize, readStart, readStop, rectify,
    res, res<-, resample, rotate, rowColFromCell, rowFromCell,
    rowFromY, setMinMax, setValues, shift, stretch, symdif, terrain,
    trim, values, values<-, writeRaster, writeStart, writeStop,
    writeValues, xFromCell, xFromCol, xmax, xmax<-, xmin, xmin<-, xres,
    xyFromCell, yFromCell, yFromRow, ymax, ymax<-, ymin, ymin<-, yres,
    zonal, zoom

Loading required package: lattice
Loading required package: latticeExtra
Warning: replacing previous import ‘raster::init’ by ‘terra::init’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::writeStop’ by ‘terra::writeStop’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::extract’ by ‘terra::extract’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::yFromCell’ by ‘terra::yFromCell’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::adjacent’ by ‘terra::adjacent’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::cellFromRowColCombine’ by ‘terra::cellFromRowColCombine’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::RGB’ by ‘terra::RGB’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::nrow<-’ by ‘terra::nrow<-’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::rotate’ by ‘terra::rotate’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::click’ by ‘terra::click’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::readStart’ by ‘terra::readStart’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::ymax<-’ by ‘terra::ymax<-’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::mosaic’ by ‘terra::mosaic’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::yres’ by ‘terra::yres’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::xres’ by ‘terra::xres’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::ymin’ by ‘terra::ymin’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::mask’ by ‘terra::mask’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::xmin’ by ‘terra::xmin’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::animate’ by ‘terra::animate’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::cellFromRowCol’ by ‘terra::cellFromRowCol’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::hasValues’ by ‘terra::hasValues’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::rasterize’ by ‘terra::rasterize’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::writeStart’ by ‘terra::writeStart’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::setValues’ by ‘terra::setValues’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::resample’ by ‘terra::resample’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::xyFromCell’ by ‘terra::xyFromCell’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::stretch’ by ‘terra::stretch’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::cover’ by ‘terra::cover’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::writeValues’ by ‘terra::writeValues’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::values’ by ‘terra::values’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::cellFromXY’ by ‘terra::cellFromXY’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::xmin<-’ by ‘terra::xmin<-’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::modal’ by ‘terra::modal’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::res’ by ‘terra::res’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::freq’ by ‘terra::freq’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::ncell’ by ‘terra::ncell’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::trim’ by ‘terra::trim’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::area’ by ‘terra::area’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::erase’ by ‘terra::erase’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::writeRaster’ by ‘terra::writeRaster’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::res<-’ by ‘terra::res<-’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::extend’ by ‘terra::extend’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::yFromRow’ by ‘terra::yFromRow’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::crs’ by ‘terra::crs’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::clamp’ by ‘terra::clamp’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::colFromCell’ by ‘terra::colFromCell’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::zonal’ by ‘terra::zonal’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::boundaries’ by ‘terra::boundaries’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::symdif’ by ‘terra::symdif’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::ncol<-’ by ‘terra::ncol<-’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::origin’ by ‘terra::origin’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::rowColFromCell’ by ‘terra::rowColFromCell’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::terrain’ by ‘terra::terrain’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::geom’ by ‘terra::geom’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::xFromCell’ by ‘terra::xFromCell’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::crs<-’ by ‘terra::crs<-’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::rowFromCell’ by ‘terra::rowFromCell’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::inMemory’ by ‘terra::inMemory’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::xmax<-’ by ‘terra::xmax<-’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::crosstab’ by ‘terra::crosstab’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::zoom’ by ‘terra::zoom’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::values<-’ by ‘terra::values<-’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::setMinMax’ by ‘terra::setMinMax’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::distance’ by ‘terra::distance’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::readStop’ by ‘terra::readStop’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::origin<-’ by ‘terra::origin<-’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::flip’ by ‘terra::flip’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::crop’ by ‘terra::crop’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::xFromCol’ by ‘terra::xFromCol’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::interpolate’ by ‘terra::interpolate’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::shift’ by ‘terra::shift’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::focal’ by ‘terra::focal’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::buffer’ by ‘terra::buffer’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::ymin<-’ by ‘terra::ymin<-’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::colFromX’ by ‘terra::colFromX’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::ymax’ by ‘terra::ymax’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::rectify’ by ‘terra::rectify’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::xmax’ by ‘terra::xmax’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::rowFromY’ by ‘terra::rowFromY’ when loading ‘rasterVis’
Warning: replacing previous import ‘raster::plotRGB’ by ‘terra::plotRGB’ when loading ‘rasterVis’
Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘xmin’ for signature ‘"Extent"’
Calls: levelplot ... levelplot -> .local -> .levelplot -> xmin -> <Anonymous>
Execution halted