updateSettings: Update settings to current version

Description Usage Arguments Value Note Author(s) Examples

View source: R/tools.R

Description

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

Usage

1
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

1
2
3
4
## Not run: 
w@settings <- updateSettings(w@settings)

## End(Not run)

RMassBank documentation built on Nov. 8, 2020, 6:06 p.m.