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

> ### Name: nni
> ### Title: Average Nearest Neighbor Index (NNI)
> ### Aliases: nni
> 
> ### ** Examples
> 
> require(sp)
Loading required package: sp
> data(meuse)
>   coordinates(meuse) <- ~x+y
>     nni(meuse)
Warning: replacing previous import 'spatstat.utils::RelevantNA' by 'spatstat.sparse::RelevantNA' when loading 'spatstat.geom'
Warning: replacing previous import 'spatstat.utils::grokIndexVector' by 'spatstat.sparse::grokIndexVector' when loading 'spatstat.geom'
Warning: replacing previous import 'spatstat.utils::fullIndexSequence' by 'spatstat.sparse::fullIndexSequence' when loading 'spatstat.geom'
Warning: replacing previous import 'spatstat.utils::positiveIndex' by 'spatstat.sparse::positiveIndex' when loading 'spatstat.geom'
Warning: replacing previous import 'spatstat.utils::replacementIndex' by 'spatstat.sparse::replacementIndex' when loading 'spatstat.geom'
Warning: replacing previous import 'spatstat.utils::RelevantEmpty' by 'spatstat.sparse::RelevantEmpty' when loading 'spatstat.geom'
Warning: replacing previous import 'spatstat.utils::isRelevantZero' by 'spatstat.sparse::isRelevantZero' when loading 'spatstat.geom'
Warning: replacing previous import 'spatstat.utils::logicalIndex' by 'spatstat.sparse::logicalIndex' when loading 'spatstat.geom'
Warning: replacing previous import 'spatstat.utils::RelevantZero' by 'spatstat.sparse::RelevantZero' when loading 'spatstat.geom'
Warning: replacing previous import 'spatstat.utils::strictIndexSequence' by 'spatstat.sparse::strictIndexSequence' when loading 'spatstat.geom'
Warning: replacing previous import 'spatstat.utils::RelevantNA' by 'spatstat.sparse::RelevantNA' when loading 'spatstat.core'
Warning: replacing previous import 'spatstat.utils::grokIndexVector' by 'spatstat.sparse::grokIndexVector' when loading 'spatstat.core'
Warning: replacing previous import 'spatstat.utils::fullIndexSequence' by 'spatstat.sparse::fullIndexSequence' when loading 'spatstat.core'
Warning: replacing previous import 'spatstat.utils::positiveIndex' by 'spatstat.sparse::positiveIndex' when loading 'spatstat.core'
Warning: replacing previous import 'spatstat.utils::replacementIndex' by 'spatstat.sparse::replacementIndex' when loading 'spatstat.core'
Warning: replacing previous import 'spatstat.utils::RelevantEmpty' by 'spatstat.sparse::RelevantEmpty' when loading 'spatstat.core'
Warning: replacing previous import 'spatstat.utils::isRelevantZero' by 'spatstat.sparse::isRelevantZero' when loading 'spatstat.core'
Warning: replacing previous import 'spatstat.utils::logicalIndex' by 'spatstat.sparse::logicalIndex' when loading 'spatstat.core'
Warning: replacing previous import 'spatstat.utils::RelevantZero' by 'spatstat.sparse::RelevantZero' when loading 'spatstat.core'
Warning: replacing previous import 'spatstat.utils::strictIndexSequence' by 'spatstat.sparse::strictIndexSequence' when loading 'spatstat.core'
Error: 'convexhull.xy' is not an exported object from 'namespace:spatstat'
Execution halted