Looking at the code for CW2pHMi (and similarly for the other CW2p* functions), the check recordType to be OSL or IRSL applies only if it receives an RLum.Data.Curve object.
Unfortunately, the use of curve.transformation in plot_RLum.Analysis() was not tested, so I'm not sure what is the expected behaviour. For example, the next two examples work, but perhaps they shouldn't?
## this works ----------------------------
plot_RLum.Analysis(temp,
subset = list(recordType = "TL"),
curve.transformation = "CW2pHMi")
## this works ----------------------------
plot_RLum.Analysis(temp,
subset = list(recordType = "TL"),
combine = TRUE,
curve.transformation = "CW2pHMi")
I actually think it's fine as it is. In the TL case, plot_RLum.Analysis() doesn't apply the curve transformation, so it's fine that the last two cases work.
There is a strange interaction between
recordType
andcurve.transformation
inplot_RLum.Analysis()
:Looking at the code for
CW2pHMi
(and similarly for the otherCW2p*
functions), the checkrecordType
to beOSL
orIRSL
applies only if it receives anRLum.Data.Curve
object.Unfortunately, the use of
curve.transformation
inplot_RLum.Analysis()
was not tested, so I'm not sure what is the expected behaviour. For example, the next two examples work, but perhaps they shouldn't?