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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: gdal_raster_data
> ### Title: General raster read and convert
> ### Aliases: gdal_raster_data gdal_raster_dsn gdal_raster_image
> 
> ### ** Examples
> 
> dsn <- system.file("extdata/sst.tif", package = "vapour")
> par(mfrow = c(2, 2))
> ## do nothing, get native
> X <- gdal_raster_data(dsn)
> 
> ## set resolution (or dimension, extent, crs, or combination thereof - GDAL 
> ## will report/resolve incompatible opts)
> X1 <- gdal_raster_data(dsn,  target_res = 1)
> 
> ## add a cutline, and cut to it using gdal warp args
> cutline <- system.file("extdata/cutline_sst.gpkg", package = "vapour")
> X1c <- gdal_raster_data(dsn,  target_res = .1, options = c("-cutline",cutline, "-crop_to_cutline" ))
> 
> ## warp whole grid to give res
> X2 <- gdal_raster_data(dsn,  target_res = 25000, target_crs = "EPSG:32755")
Warning in warp_general_cpp(dsn, target_crs, as.numeric(target_ext), as.integer(target_dim),  :
  no source crs, target crs is ignored
> 
> ## specify exactly (as per vapour originally)
> X3 <- gdal_raster_data(dsn,  target_ext = c(-1, 1, -1, 1) * 8e6, 
+  target_dim = c(512, 678), target_crs = "+proj=stere +lon_0=147 +lat_0=-90")
Warning in warp_general_cpp(dsn, target_crs, as.numeric(target_ext), as.integer(target_dim),  :
  no source crs, target crs is ignored
ERROR 1: Too few arguments

 *** caught segfault ***
address 0x68, cause 'memory not mapped'

Traceback:
 1: warp_general_cpp(dsn, target_crs, as.numeric(target_ext), as.integer(target_dim),     as.numeric(target_res), bands = as.integer(bands), resample = resample,     silent = FALSE, band_output_type = band_output_type, options = options,     dsn_outname = "")
 2: gdal_raster_data(dsn, target_ext = c(-1, 1, -1, 1) * 8e+06, target_dim = c(512,     678), target_crs = "+proj=stere +lon_0=147 +lat_0=-90")
An irrecoverable exception occurred. R is aborting now ...
Segmentation fault