Functions to access and set hyperSpec's options.

hy_get_options(...)

hy_get_option(name)

hy_set_options(...)

Arguments

...

hy_set_options: pairs of argument names and values.

hy_get_options: indices (or names) of the options.

name

the name of the option

Value

hy_get_optionsreturns a list of all options
hy_set_optionsinvisibly returns a list with the options
hy_get_optionreturns 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 producedidentify_spc() 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 defaultplot_spc()
ggplot.spc.nmax10qplotspc()

hy_set_options will discard any values that were given without a name.

Author

C. Beleites

Examples


hy_get_options()
#> $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
#>