Functions to access and set hyperSpec's options.
hy_get_options(...)
hy_get_option(name)
hy_set_options(...)hy_set_options: pairs of argument names and values.
hy_get_options: indices (or names) of the options.
the name of the option
hy_get_options | returns a list of all options |
hy_set_options | invisibly returns a list with the options |
hy_get_option | returns the value of the requested option |
Currently, the following options are defined:
| Name | Default Value (range) | Description | Used by |
| debuglevel | 0 (1L 2L 3L) | amount of debugging information produced | identify_spc() map.identify() |
| various file import functions | |||
spc_fit_poly_below() | |||
| gc | FALSE | triggers frequent calling of gc () | read.ENVI(), new ("hyperSpec") |
| file.remove.emptyspc | TRUE | remove empty spectra directly on file import | various file import functions |
| file.keep.name | TRUE | always create filename column | various file import functions |
| tolerance | sqrt (.Machine$double.eps) | tolerance for numerical comparisons | normalize_01(), file import: file.remove.emptyspc |
| wl.tolerance | sqrt (.Machine$double.eps) | tolerance for comparisons of the wavelength axis | all.equal(), collapse(), rbind() |
| plot.spc.nmax | 25 | number of spectra to be plotted by default | plot_spc() |
| ggplot.spc.nmax | 10 | qplotspc() |
hy_set_options will discard any values that were given without a name.
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
#>