Error(s) in re-building vignettes:
--- re-building 'leastcostpath-1.Rmd' using rmarkdown
Loading required package: sp
rgdal: version: 1.4-8, (SVN revision 845)
 Geospatial Data Abstraction Library extensions to R successfully loaded
 Loaded GDAL runtime: GDAL 2.2.3, released 2017/11/20
 Path to GDAL shared files: D:/temp/RtmpQTHVF7/RLIBS_258ec65d5504e/rgdal/gdal
 GDAL binary built with GEOS: TRUE 
 Loaded PROJ.4 runtime: Rel. 4.9.3, 15 August 2016, [PJ_VERSION: 493]
 Path to PROJ.4 shared files: D:/temp/RtmpQTHVF7/RLIBS_258ec65d5504e/rgdal/proj
 Linking to sp version: 1.4-1 
rgeos version: 0.5-3, (SVN revision 634)
 GEOS runtime version: 3.8.0-CAPI-1.13.1 
 Linking to sp version: 1.4-1 
 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 raster::crop(all_pts, ext) : non identical CRS
Warning in raster::crop(all_pts, ext) : non identical CRS
Quitting from lines 201-210 (leastcostpath-1.Rmd) 
Error: processing vignette 'leastcostpath-1.Rmd' failed with diagnostics:
Value within nb_matrix exceeds number of locations
--- failed re-building 'leastcostpath-1.Rmd'

--- re-building 'leastcostpath-2.Rmd' using rmarkdown
Loading required package: sp
rgdal: version: 1.4-8, (SVN revision 845)
 Geospatial Data Abstraction Library extensions to R successfully loaded
 Loaded GDAL runtime: GDAL 2.2.3, released 2017/11/20
 Path to GDAL shared files: D:/temp/RtmpQTHVF7/RLIBS_258ec65d5504e/rgdal/gdal
 GDAL binary built with GEOS: TRUE 
 Loaded PROJ.4 runtime: Rel. 4.9.3, 15 August 2016, [PJ_VERSION: 493]
 Path to PROJ.4 shared files: D:/temp/RtmpQTHVF7/RLIBS_258ec65d5504e/rgdal/proj
 Linking to sp version: 1.4-1 
rgeos version: 0.5-3, (SVN revision 634)
 GEOS runtime version: 3.8.0-CAPI-1.13.1 
 Linking to sp version: 1.4-1 
 Polygon checking: TRUE 

Loading required package: spData
To access larger datasets in this package, install the spDataLarge
package with: `install.packages('spDataLarge',
repos='https://nowosad.github.io/drat/', type='source')`
Loading required package: sf
Linking to GEOS 3.8.0, GDAL 3.0.4, PROJ 6.3.1
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

--- finished re-building 'leastcostpath-2.Rmd'

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

Error: Vignette re-building failed.
Execution halted