aphalo / ooacquire

Acquire spectral data and control array spectrometers from Ocean Optics from within R
https://docs.r4photobiology.info/ooacquire
0 stars 0 forks source link

Bad user input to `scan()` leads to unhandled error #12

Closed aphalo closed 9 months ago

aphalo commented 10 months ago

There are three calls to scan() in file acq-interactive-utils.R. If the values entered by the user cannot be decoded as numbers, an error condition is triggered and acq_irrad_interactive() stops. Currently the only bad input properly handles, is numeric(0) when user types white space or enter.

aphalo commented 9 months ago

Solved in 0.4.4 using readline() in own utils functions.