Note:

Package hyperSpec and it’s friends provide a number of vignettes to help you get started.

filename <- system.file("extdata", "HySpexNIR.hyspex", package = "hySpc.read.ENVI")
hyspex <- hySpc.read.ENVI::read_ENVI_HySpex(filename)
hyspex
filename <- system.file("extdata", "toy.bil", package = "hySpc.read.ENVI")
toy <- hySpc.read.ENVI::read_ENVI(filename)
toy