Changelog
Source:NEWS.md
Changes in version 0.9.26 (2024-11-18)
CRAN release: 2024-11-18
Removed functions
- Function
calc_Kars2008()
(deprecated since version 0.8.1) is now officially defunct,calc_Huntley2006()
should be used instead (#252, fixed in #257).
Bugfixes
analyse_pIRIRSequence()
- The function crashed with a object merge error if run in a loop because of a
merge_RLum()
error. This was caused by a regression while implementing then_N
calculation inplot_GrowthCurve()
. Potentially affected was alsoanalyse_SAR.CWOSL()
. - The function now shows a warning and sets
plot = FALSE
when optionplot.single = FALSE
is set but the device size is too small. This should prevent “Figure margins too large” errors. - The function will not crash anymore during the plotting in another edge case related to single grain data.
analyse_SAR.CWOSL()
- The function crashed for mixed set of
RLum.Analysis-class
objects typically observed for single grain data, e.g., one object contains only TL curves while all others contain the OSL/IRSL data from the grain. As the function filters those records automatically, it crashed because the aliquot number assignment internally relied on the length of the object (regression, #373, fixed)
get_RLum()
- When the function was used on a list of
RLum.Analysis-class
objects with the argumentnull.rm = TRUE
it would remove allNULL
objects, but not elements that becamelist()
(empty list) during the selection; fixed. - Fix an edge case that caused a rather non-expected, more visible output problem. When curves were selected via
recordType
onRLum.Analysis-class
objects (or a list of them) containing only a singleRLum.Data-class
object, the function returned theRLum.Data.Curve-class
object regardless of the selection inrecordType
. In other words: if a user triedrecordType = "TL"
on anRLum.Analysis-class
object that contained only a single IRSL curve, the function would still return that single IRSL curve instead of an empty element. The reason for this behaviour was a poor attempt to deal withNA
in therecordType
name that led to missing values and unexpected behaviour for a logical comparison. Now, before the subset happens,NA
values inrecordType
are converted to"NA"
(a character), allowing us to fix the incorrect subsetting.
plot_RLum.Data.Spectrum()
- Add support for
lphi
andltheta
light direction arguments forplot.type = "persp"
. - Fix the reason for the unclear warning
In col.unique == col : longer object length is not a multiple of shorter object length
write_R2BIN()
- Recently, non-ASCII characters in comments or file names have become more common and that led to crashes during the file export. To avoid this, now all non-ASCII characters are replaced by
_
before writing them to the BIN/BINX files. - The function now returns the file path of the export.
- Fix a bug that left connections open if the function crashed.
Internals
- Two new internal functions
.throw_warning()
and.throw_error()
sometimes flushed the terminal with messages if called (internally) in particular circumstances. Now we maintain a stack of function names, so that at any time we can report correctly the name of the function where an error or a warning is thrown (#254, fixed in #256).
Changes in version 0.9.25 (2024-09-12)
CRAN release: 2024-09-12
This package version requires R >= 4.3
New functions
-
read_HeliosOSL2R()
: New import function to support the new zero rad Helios luminescence reader and its.osl
file format. The output is anRLum.Analysis-class
object.
Bugfixes
calc_Huntley2006()
- Improve success rate of GOK fitting of the unfaded data using a two step approach: first an exponential fit is applied then this values are used as start parameters.
calc_WodaFuchs2008()
- The function now officially supports numeric vectors and single-column data frames as input (#200).
- The function computed the number of breaks for the histogram incorrectly (#197, fixed with #198).
- The function now supports more types of
RLum.Results
objects without crashing, although if the object contains only one data point it will stop immediately to avoid problems withnls()
(#199, fixed in #219).
fit_EmissionSpectra()
- Parameter
input_scale
was not correctly propagated when the function would self-call (#160, 1).
plot_GrowthCurve()
- The function now calculates the relative saturation (
n/N
) using the ratio of the two integrates. The value is part of the output table. - Argument
na.rm
has been removed: as of version 0.9.23, it was defunct and only acceptedTRUE
as valid value and produced an error otherwise, so there is no effective change in behaviour (#137, fixed in #214).
plot_RLum.Data.Analysis()
- The function now supports all arguments from
plot_RLum.Data.Spectrum()
; before it had only basic functionality forRLum.Data.Spectrum-class
data.
plot_RLum.Data.Spectrum()
- The plot function can now handle non-increasing column values for plotting (with a warning).
read_BIN2R()
-
ignore.RECTYPE
now supports numeric values, e.g., 128. Records for this type will be ignored during import. - BINX-files with
RECTYPE = 128
will not crash anymore, thanks for asking Anna-Maartje Boer and replying Karsten Bracht. - The function now stops graciously when attempting to read an empty file (#225, fixed in #226).
read_PSL2R()
- The function is out of the beta status, hence the flag was removed.
- The
RLum.Analysis-class
object returned by the function gained a new elementSequence
, which is a data frame. with the measured sequence. This way, if the original sequence was lost, it can still be extracted from the.psl
data. - If no
.psl
file was found the function got trapped in an infinite loop (#127); fixed with #128 (thanks to 1)