
Write the model info into a JSON for ProxiScout devices
Source:R/proxiscout_write_model_info.R
proxiscout_write_model_info.RdWrites a JSON for the provided object that contains information about the model,
in the style of ProxiScout devices.
Arguments
- object
An object of class
spectral_modelthat contains the preprocessing recipe and final model details.- n_measurements
An integer for the number of measurements. This value is directly written into the JSON as both the
numberOfMeasurementsandavgReadings, and represents the number of measurements that were taken in the original data per sample. Default is1.- file
an optional character string with the path (including the filename) where the JSON output should be written. If
NULL(default), the JSON string is returned.