Skip to contents

Choose a protocol by name from a list of protocols, allowing the user to correct the selection if needed. Protocols are not hard-wired, but instead defined by the list passed as argument to protocols.

Usage

protocol_interactive(protocols, default = names(protocols)[[1]])

Arguments

protocols

named list Measuring protocol defifinitions and names.

default

character Name of the default protocol.

Value

The member vector corresponding to the protocol selected by the user.

Details

A protocol is defined as a named list of character strings, and consist in multiple acquisition of spectra contributing to the same logical measurement. The name of the list member is the name of the protocol, while the members of each character vector correspond to spectra to be acquired, after some change in the measurement conditions. For example the list list(rsd = c("reference", "sample", "dark"), rs = c("reference", "sample")) defines two protocols.