Error(s) in re-building vignettes:
--- re-building 'leastcostpath-1.Rmd' using rmarkdown
Loading required package: sp
Please note that rgdal will be retired by the end of 2023,
plan transition to sf/stars/terra functions using GDAL and PROJ
at your earliest convenience.

rgdal: version: 1.5-29, (SVN revision 1165M)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.2.1, released 2020/12/29
Path to GDAL shared files: D:/temp/RtmpGKTaJg/RLIBS_d8bc24cd3dc8/rgdal/gdal
GDAL binary built with GEOS: TRUE 
Loaded PROJ runtime: Rel. 7.2.1, January 1st, 2021, [PJ_VERSION: 721]
Path to PROJ shared files: D:/temp/RtmpGKTaJg/RLIBS_d8bc24cd3dc8/rgdal/proj
PROJ CDN enabled: FALSE
Linking to sp version:1.4-6
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading sp or rgdal.
Overwritten PROJ_LIB was D:/temp/RtmpGKTaJg/RLIBS_d8bc24cd3dc8/rgdal/proj
rgeos version: 0.5-9, (SVN revision 684)
 GEOS runtime version: 3.9.1-CAPI-1.14.2 
 Please note that rgeos will be retired by the end of 2023,
plan transition to sf functions using GEOS at your earliest convenience.
 GEOS using OverlayNG
 Linking to sp version: 1.4-6 
 Polygon checking: TRUE 

Loading required package: igraph

Attaching package: 'igraph'

The following object is masked from 'package:raster':

    union

The following object is masked from 'package:rgeos':

    union

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

Loading required package: Matrix

Attaching package: 'gdistance'

The following object is masked from 'package:igraph':

    normalize

Warning in proj4string(obj) :
  CRS object has comment, which is lost in output; in tests, see
https://cran.r-project.org/web/packages/sp/vignettes/CRS_warnings.html
Warning in get.shortest.paths(adjacencyGraph, indexOrigin, indexGoal) :
  At core/paths/dijkstra.c:442 : Couldn't reach some vertices.
Warning in min(x) : no non-missing arguments to min; returning Inf
Warning in max(x) : no non-missing arguments to max; returning -Inf
Warning in min(x) : no non-missing arguments to min; returning Inf
Warning in max(x) : no non-missing arguments to max; returning -Inf
Quitting from lines 128-135 (leastcostpath-1.Rmd) 
Error: processing vignette 'leastcostpath-1.Rmd' failed with diagnostics:
invalid class "SpatialLines" object: bbox should never contain infinite values
--- failed re-building 'leastcostpath-1.Rmd'

SUMMARY: processing the following file failed:
  'leastcostpath-1.Rmd'

Error: Vignette re-building failed.
Execution halted