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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ConwyData
> ### Title: Land use change data
> ### Aliases: ConwyData ConwySlope
> 
> ### ** Examples
> 
> library(bnspatial)
> data(ConwyData)
> list2env(ConwyData, environment())
<environment: R_GlobalEnv>
> ls()
[1] "ConwyData"     "ConwyLU"       "ConwySlope"    "ConwyStatus"  
[5] "LUclasses"     "LandUseChange" "evidence"     
> 
> ## The network nodes and states
> LandUseChange$universe$levels
$CurrentLULC
[1] "forest" "arable" "other" 

$LegalStatus
[1] "public"    "private"   "protected"

$Slope
[1] "flat"     "moderate" "steep"   

$Stakeholders
[1] "farmers"  "localGvt" "tourists"

$Scenarios
[1] "intensification" "sustainable"    

$RelativePreference
[1] "forest" "arable" "other" 

$FinalLULC
[1] "forest" "arable" "other" 

$CarbonStock
[1] "high"     "moderate" "low"     

> 
> ## Lookup list relating raster values and network nodes
> LUclasses
$CurrentLULC
$CurrentLULC$States
[1] "forest" "other"  "arable"

$CurrentLULC$ClassBoundaries
[1] 2 1 3

$CurrentLULC$Categorical
[1] TRUE


$Slope
$Slope$States
[1] "flat"     "moderate" "steep"   

$Slope$ClassBoundaries
[1] -Inf    1    7  Inf

$Slope$Categorical
[1] FALSE


$LegalStatus
$LegalStatus$States
[1] "public"    "private"   "protected"

$LegalStatus$ClassBoundaries
[1] 4 3 1

$LegalStatus$Categorical
[1] TRUE


> 
> ## Table of evidence extracted from input spatial data
> head(evidence)
     CurrentLULC Slope      LegalStatus
[1,] "other"     "steep"    "public"   
[2,] "forest"    "steep"    "public"   
[3,] "other"     "moderate" "public"   
[4,] "other"     "steep"    "public"   
[5,] "arable"    "steep"    "public"   
[6,] "forest"    "moderate" "public"   
> 
> ## The input spatial data
> par(mfrow=c(2,2))
> raster::plot(ConwyLU)
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/lattice/libs/lattice.so':
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/lattice/libs/lattice.so: failed to map segment from shared object
Calls: :: ... namespaceImport -> loadNamespace -> library.dynam -> dyn.load
Execution halted