check_raster: Check that an object is a SpatRaster

View source: R/validation.R

check_rasterR Documentation

Check that an object is a SpatRaster

Description

Check that an object is a SpatRaster

Usage

check_raster(x, arg_name = "image")

Arguments

x

Object to check.

arg_name

Name of the argument in the calling function.

Value

Invisible TRUE if valid; throws an error otherwise.


GeoIndexR documentation built on Oct. 10, 2026, 5:08 p.m.