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

> ### Name: sampleDist
> ### Title: Compute the Distances Between Samples in a Spectra or Spectra2D
> ###   Object
> ### Aliases: sampleDist
> ### Keywords: hplot
> 
> ### ** Examples
> 
> # You need to install package "lattice" for this example
> if (requireNamespace("lattice", quietly = TRUE)) {
+   if (checkForPackageWithVersion("ChemoSpec", 6.0)) {
+     library("ChemoSpec")
+     library("lattice")
+     data(SrE.IR)
+ 
+     SrE.dmatrix <- sampleDist(SrE.IR, # cosine distance bounded on [0...2]
+       method = "cosine",
+       main = "SrE.IR Cosine Distance Between Samples"
+     )
+     SrE.dmatrix <- sampleDist(SrE.IR, # abspearson distance bounded on [0...1]
+       method = "abspearson",
+       main = "SrE.IR Absolute Pearson Distance Between Samples"
+     )
+     SrE.dmatrix <- sampleDist(SrE.IR, # euclidean distance unbounded
+       method = "euclidean",
+       main = "SrE.IR Euclidean Distance Between Samples"
+     )
+   }
+ 
+   if (checkForPackageWithVersion("ChemoSpec2D", 0.5)) {
+     library("ChemoSpec2D")
+     library("lattice")
+     data(MUD1)
+ 
+     MUD1.dmatrix <- sampleDist(MUD1,
+       method = "cosine",
+       main = "MUD1 Cosine Distance Between Samples"
+     )
+   }
+ }

As of version 6, ChemoSpec offers new graphics output options
For details, please see ?GraphicsOptions

The ChemoSpec graphics option is set to 'ggplot2'
To change it, do
	options(ChemoSpecGraphics = 'option'),
	where 'option' is one of 'base' or 'ggplot2' or'plotly'.

As of version 6 of ChemoSpec, ChemoSpec2D offers new graphics output options

Functions plotScores and plotScree will work with the new options
For details, please see ?GraphicsOptions

The ChemoSpec graphics option is set to 'ggplot2'
To change it, do
	options(ChemoSpecGraphics = 'option'),
	where 'option' is one of 'base' or 'ggplot2' or'plotly'.
Error: '.unstack' is not an exported object from 'namespace:ChemoSpec2D'
Execution halted