R/assert-is-type-grDevices.R

Defines functions assert_is_raster

Documented in assert_is_raster

#' @rdname is_raster
#' @export
assert_is_raster <- function(x, 
  severity = getOption("assertive.severity", "stop"))
{                                                         
  assert_engine(
    is_raster, 
    x, 
    .xname = get_name_in_parent(x),
    severity = severity
  )
}

Try the assertive.types package in your browser

Any scripts or data that you put into this service are public.

assertive.types documentation built on May 1, 2019, 10:31 p.m.