updateSettings {RMassBank} | R Documentation

## Update settings to current version

### Description

Checks if all necessary fields are present in the current settings and fills in default values from the `RmbDefaultSettings` if required.

### Usage

    updateSettings(settings, warn = TRUE)

### Arguments

`settings` | The set of settings to check and update.
`warn` | Whether to update parameters quietly (`FALSE`) or to notify the user of the changed parameters (`TRUE`, default.) This serves to make the user aware that standard parameters are filled in!

### Value

The updated set of settings.

### Note

Important: There is a change in behaviour of RMassBank in certain cases when `filterSettings` is not present in the old settings! The default pre-recalibration cutoff from `RmbDefaultSettings` is 10000. Formerly the pre-recalibration cutoff was set to be 10000 for positive spectra but 0 for negative spectra.

Updating the settings files is preferred to using the `updateSettings` function.

### Author(s)

Stravs MA, Eawag <michael.stravs@eawag.ch>

### Examples

    ## Not run:
    w@settings <- updateSettings(w@settings)

    ## End(Not run)

[Package RMassBank version 2.8.0 Index]