Closed mcol closed 2 weeks ago
Also:
data("ExampleData.BINfileData", envir = environment())
obj <- Risoe.BINfileData2RLum.Analysis(CWOSL.SAR.Data,
pos = 8, ltype = "OSL")
plot_NRt(obj[[2]])
# Error in plot_NRt(obj[[2]]) : object 'curves' not found
Here the code doesn't correspond to the error message:
https://github.com/R-Lum/Luminescence/blob/759a1142651cc557f9fd06c6b061d1aff244cdf9/R/plot_NRt.R#L145-L146
Assuming that the message is correct, we should test for if (!all(... == ...))
or equivalently for if (any(... != ...))
.
I do agree, this cannot work as intended.
Fixed by #179.
The following examples crash due to insufficient input validation: