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

> ### Name: train.spLearner,SpatialPointsDataFrame,ANY,SpatialPixelsDataFrame-method
> ### Title: Train a spatial prediction and/or interpolation model using
> ###   Ensemble Machine Learning
> ### Aliases:
> ###   train.spLearner,SpatialPointsDataFrame,ANY,SpatialPixelsDataFrame-method
> ###   train.spLearner
> ###   train.spLearner,data.frame,formula,SpatialPixelsDataFrame-method
> 
> ### ** Examples
> 
> library(mlr)
Loading required package: ParamHelpers
Warning message: 'mlr' is in 'maintenance-only' mode since July 2019.
Future development will only happen in 'mlr3'
(<https://mlr3.mlr-org.com>). Due to the focus on 'mlr3' there might be
uncaught bugs meanwhile in {mlr} - please consider switching.
> library(rgdal)
Loading required package: sp
rgdal: version: 1.5-23, (SVN revision 1121)
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: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/lib/rgdal/gdal
GDAL binary built with GEOS: FALSE 
Loaded PROJ runtime: Rel. 7.0.0, March 1st, 2020, [PJ_VERSION: 700]
Path to PROJ shared files: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/lib/rgdal/proj
PROJ CDN enabled: FALSE
Linking to sp version:1.4-5
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.
Overwritten PROJ_LIB was C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/lib/rgdal/proj
> library(geoR)
--------------------------------------------------------------
 Analysis of Geostatistical Data
 For an Introduction to geoR go to http://www.leg.ufpr.br/geoR
 geoR version 1.8-1 (built on 2020-02-08) is now loaded
--------------------------------------------------------------

> library(plotKML)
plotKML version 0.6-1 (2020-03-08)
URL: http://plotkml.r-forge.r-project.org/
> library(kernlab)
> library(ranger)
> library(glmnet)
Loading required package: Matrix
Loaded glmnet 4.1-1
> library(boot)
> library(raster)

Attaching package: 'raster'

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

    buffer, rotated

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

    resample

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

    getValues

> demo(meuse, echo=FALSE)
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Amersfoort in Proj4 definition
> ## Regression:
> sl = c("regr.ranger", "regr.nnet", "regr.glm")
> m <- train.spLearner(meuse["lead"], covariates=meuse.grid[,c("dist","ffreq")],
+       lambda=0, parallel=FALSE, SL.library=sl)
Converting ffreq to indicators...
Warning in proj4string(obj) :
  CRS object has comment, which is lost in output
Converting covariates to principal components...
Deriving oblique coordinates...TRUE
Error in loadNamespace(x) : there is no package called 'spdep'
Calls: train.spLearner ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted