hyperSpec. — hy.getOptions" />

Functions to access and set hyperSpec's options.

hy.getOptions(...)

hy.getOption(name)

hy.setOptions(...)

Arguments

...

hy.setOptions: pairs of argument names and values.

hy.getOptions: indices (or names) of the options.

name

the name of the option

Value

hy.getOptionsreturns a list of all options
hy.setOptionsinvisibly returns a list with the options
hy.getOptionreturns the value of the requested option

Details

Currently, the following options are defined:

NameDefault Value (range)DescriptionUsed by
debuglevel0 (1L 2L 3L)amount of debugging information producedspc.identify() map.identify()
various file import functions
spc.fit.poly.below()
gcFALSEtriggers frequent calling of gc ()read.ENVI(), new ("hyperSpec")
file.remove.emptyspcTRUEremove empty spectra directly on file importvarious file import functions
file.keep.nameTRUEalways create filename columnvarious file import functions
tolerancesqrt (.Machine$double.eps)tolerance for numerical comparisonsnormalize01(), file import: file.remove.emptyspc
wl.tolerancesqrt (.Machine$double.eps)tolerance for comparisons of the wavelength axisall.equal(), collapse(), rbind()
plot.spc.nmax25number of spectra to be plotted by defaultplotspc()
ggplot.spc.nmax10qplotspc()

hy.setOptions will discard any values that were given without a name.

Author

C. Beleites

Examples

hy.getOptions()
#> $debuglevel #> [1] 0 #> #> $gc #> [1] FALSE #> #> $file.remove.emptyspc #> [1] TRUE #> #> $file.keep.name #> [1] TRUE #> #> $tolerance #> [1] 1.490116e-08 #> #> $wl.tolerance #> [1] 1.490116e-08 #> #> $plot.spc.nmax #> [1] 25 #> #> $ggplot.spc.nmax #> [1] 10 #>