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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: raster_to_GLT
> ### Title: Creates a geometry lookup (GLT) file from a raster
> ### Aliases: raster_to_GLT
> 
> ### ** Examples
> 
> library("raster")
Loading required package: sp
> tahoe_lidar_highesthit <- 
+ 	raster(system.file("external/tahoe_lidar_highesthit.tif", package="spatial.tools"))
> tahoe_lidar_highesthit_glt <- raster_to_GLT(tahoe_lidar_highesthit)
Warning in .local(x, ...) : min value not known, use setMinMax
Warning in .local(x, ...) : min value not known, use setMinMax
rgdal: version: 1.3-3, (SVN revision 759)
 Geospatial Data Abstraction Library extensions to R successfully loaded
 Loaded GDAL runtime: GDAL 2.3.1, released 2018/06/22
 Path to GDAL shared files: /usr/share/gdal
 GDAL binary built with GEOS: TRUE 
 Loaded PROJ.4 runtime: Rel. 5.1.0, June 1st, 2018, [PJ_VERSION: 510]
 Path to PROJ.4 shared files: (autodetected)
 Linking to sp version: 1.3-1 
[1] "/tmp/RtmpEVe7LI/file2be72fe384.gri"
Warning in .local(x, ...) : min value not known, use setMinMax
> plot(tahoe_lidar_highesthit_glt)
> setMinMax(tahoe_lidar_highesthit_glt)
class       : RasterBrick 
dimensions  : 400, 400, 160000, 2  (nrow, ncol, ncell, nlayers)
resolution  : 5.472863e-06, 5.472863e-06  (x, y)
extent      : -119.9328, -119.9306, 39.28922, 39.29141  (xmin, xmax, ymin, ymax)
coord. ref. : +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0 
data source : /tmp/RtmpEVe7LI/file2be72fe384.grd 
names       : layer.1, layer.2 
min values  :       1,       1 
max values  :     400,     400 

> 
> 
> 
> 
> base::assign(".dptime", (proc.time() - get(".ptime", pos = "CheckExEnv")), pos = "CheckExEnv")
> base::cat("raster_to_GLT", base::get(".format_ptime", pos = 'CheckExEnv')(get(".dptime", pos = "CheckExEnv")), "\n", file=base::get(".ExTimings", pos = 'CheckExEnv'), append=TRUE, sep="\t")
> cleanEx()

detaching ‘package:mmap’, ‘package:rgdal’, ‘package:raster’,
  ‘package:sp’

Error: connections left open:
	/tmp/RtmpEVe7LI/file2be72fe384.gri (file)
Execution halted