Running examples in 'gdalUtils-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: mosaic_rasters
> ### Title: Mosaic raster files using GDAL Utilities
> ### Aliases: mosaic_rasters
> 
> ### ** Examples
> 
> # We'll pre-check to make sure there is a valid GDAL install
> # and that raster and rgdal are also installed.
> # Note this isn't strictly neccessary, as executing the function will
> # force a search for a valid GDAL install.
> outdir <- tempdir()
> gdal_setInstallation()
> valid_install <- !is.null(getOption("gdalUtils_gdalPath"))
> if(require(raster) && require(rgdal) && valid_install)
+ {
+ layer1 <- system.file("external/tahoe_lidar_bareearth.tif", package="gdalUtils")
+ layer2 <- system.file("external/tahoe_lidar_highesthit.tif", package="gdalUtils")
+ mosaic_rasters(gdalfile=c(layer1,layer2),dst_dataset=file.path(outdir,"test_mosaic.envi"),
+ 		separate=TRUE,of="ENVI",verbose=TRUE)
+ gdalinfo("test_mosaic.envi")
+ }
Loading required package: raster
Loading required package: sp
Loading required package: rgdal
rgdal: version: 1.4-8, (SVN revision 845)
 Geospatial Data Abstraction Library extensions to R successfully loaded
 Loaded GDAL runtime: GDAL 3.0.4, released 2020/01/28
 Path to GDAL shared files: 
 GDAL binary built with GEOS: TRUE 
 Loaded PROJ.4 runtime: Rel. 6.3.0, January 1st, 2020, [PJ_VERSION: 630]
 Path to PROJ.4 shared files: (autodetected)
 Linking to sp version: 1.3-2 
Checking to make sure all the input files exist...
Checking gdal_installation...
Not all projections are identical...
Warning: executing %dopar% sequentially: no parallel backend registered
Checking gdal_installation...
GDAL version 3.0.4
GDAL command being used: "/usr/bin/gdalbuildvrt" "/tmp/RtmpqCkADa/file5a4272843849.vrt" "/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/gdalUtils/external/tahoe_lidar_bareearth.tif"
Checking gdal_installation...
GDAL version 3.0.4
GDAL command being used: "/usr/bin/gdalbuildvrt" "/tmp/RtmpqCkADa/file5a4246eacb67.vrt" "/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/gdalUtils/external/tahoe_lidar_highesthit.tif"
Checking gdal_installation...
GDAL version 3.0.4
GDAL command being used: "/usr/bin/gdalwarp" -tr 5.472861327e-06 5.472861327e-06 -t_srs "" -r "near" -of "VRT" "/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/gdalUtils/external/tahoe_lidar_highesthit.tif" "/tmp/RtmpqCkADa/file5a42359a7637_warped.vrt"
ERROR 1: Translating source or target SRS failed:

Warning in system(cmd, intern = TRUE) :
  running command '"/usr/bin/gdalwarp" -tr 5.472861327e-06 5.472861327e-06 -t_srs "" -r "near" -of "VRT" "/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/gdalUtils/external/tahoe_lidar_highesthit.tif" "/tmp/RtmpqCkADa/file5a42359a7637_warped.vrt"' had status 1
Checking for multiband inputs...
ERROR 4: /tmp/RtmpqCkADa/file5a42359a7637_warped.vrt: No such file or directory
gdalinfo failed - unable to open '/tmp/RtmpqCkADa/file5a42359a7637_warped.vrt'.
Warning in system(cmd, intern = TRUE) :
  running command '"/usr/bin/gdalinfo" "/tmp/RtmpqCkADa/file5a42359a7637_warped.vrt"' had status 1
Error in { : task 2 failed - "subscript out of bounds"
Calls: mosaic_rasters -> %do% -> <Anonymous>
Execution halted