Recent Releases of lightr
lightr - lightr 1.9.0
New features
- cases where a mix of
.csvand other 'csv-like but not quite csv' formats are passed tolr_get_spec()are now handled better, after a report from @bittonp (@Bisaloo, #58). This also means that it's no longer necessary to explicitly setsep = ","when trying to parse csv files (#15). lr_parse_procspec()gains a new argumentverify_checksumto verify if the data has been tampered with since its creation by the official OceanView software (@Bisaloo, #29).lr_parse_spc()(OceanOptics, CRAIC) andlr_parse_rfl8()/lr_parse_raw8()/lr_parse_irr8()(Avantes) now return the measurement date & time in the metadata elements (@Bisaloo, #75). In other words,lr_get_metadata()now returnsavetimefor.spc,.RFL8,.RAW8,IRR8files.
Scientific Software - Peer-reviewed
- R
Published by Bisaloo 7 months ago
lightr - lightr 1.8.0
Minor changes
- timezones for converted OceanOptics files are now handled differently internally (@Bisaloo, #64),
to handle changes in upstream tzdata 2024b, which removed for example the CET and EST timezone codes.
This may result in some other deprecated timezone codes not being handled correctly.
Please report any bugs or discrepancies you may notice in the
datetimefield of metadata. - lightr now depends on R >= 4.0.0, following the tidyverse recommendation (@Bisaloo, #28)
- the future package is now explicitly listed as a dependency, removing an
R CMD checkNOTEand thus removing the strain on CRAN reviewers (@Bisaloo, #63). The future package was already a indirect dependency via the future.apply package.
Scientific Software - Peer-reviewed
- R
Published by Bisaloo about 1 year ago
lightr - lightr 1.7.1
Internal changes
- this project now uses lintr to ensure the code is always following the current best coding practices in the R community
- ensure floating precision issues are not causing tests to fail on CRAN (@Bisaloon, #156)
Scientific Software - Peer-reviewed
- R
Published by Bisaloo almost 2 years ago
lightr - lightr 1.7.0
Minor changes
Errors in low-level parsers are now passed as warnings in high-level
lr_get_XXX()functions instead of being completely silenced.IRR8 (irradiance files produced by AvaSoft 8) are now explicitly supported by
lr_get_spec(). An alias has been added for the low-level parser:lr_parse_irr8().
Scientific Software - Peer-reviewed
- R
Published by Bisaloo almost 4 years ago
lightr - lightr 1.6.2
Minor changes
- fix failing tests on CRAN due to unattached dependency
Scientific Software - Peer-reviewed
- R
Published by Bisaloo over 4 years ago
lightr - lightr 1.6.1
Minor changes
- fix failing tests on CRAN caused by non UTF-8 files
Scientific Software - Peer-reviewed
- R
Published by Bisaloo over 4 years ago
lightr - lightr 1.6.0
Major breaking changes
- The date returned in metadata (by
lr_get_metadata(),lr_convert_tocsv(metadata = TRUE)andlr_parse_XXXX()) is now a datetime (with UTC as timezone and format%Y-%m-%d %H:%M:%S). The column name inlr_get_metadata()has been updated fromdatetodatetimeto reflect this. Thanks to Giancarlo Chiarenza for the report, and to Hao Ye, Laura DeCicco and Elin Waring for helpful comments about timezones and datetime formatting for reproducibility.
Minor changes
- datetime parsing is supported for more formats
- Files produced by OceanInsight software (such as SpectraSuite) in Spanish can now be parsed)
Scientific Software - Peer-reviewed
- R
Published by Bisaloo over 4 years ago
lightr - lightr 1.5.0
Major breaking changes
- the
coresargument inlr_get_spec(),lr_get_metadata(), andlr_convert_tocsv()has been completely removed. It was already deprecated since lightr 1.0 (released on CRAN on 2020-01-27) lr_convert_tocsv()gains a newmetadataargument (defaults toTRUE) to determine if metadata should be exported in a csv file as well alongside the spectral data.
Scientific Software - Peer-reviewed
- R
Published by Bisaloo over 4 years ago
lightr - lightr 1.4
Minor changes and bug fixes
- Output of the low-level parsers
lr_parse_XXXX()is now a named list with elementsdataandmetadata lr_parse_raw8()andlr_parse_rfl8()now explicitly mention the number of spectra in the warnings instead of the generic "multiple spectra"lr_parse_generic()now makes sure that the data is ordered by increasing wavelengths, which fixes a bug reported by @itamshab
Scientific Software - Peer-reviewed
- R
Published by Bisaloo almost 5 years ago
lightr - lightr 1.3
Minor changes
- disable hash tests on Solaris (the output is still checked by other tests)
Scientific Software - Peer-reviewed
- R
Published by Bisaloo over 5 years ago
lightr - lightr 1.2
Minor changes
- fixed tests on platform with no long-doubles ('noLD')
- restored tests on 32bits machines
spec_IDextraction from Avantes exported files (tttandtrt) is now more robust, meaning it should work for more files.
Scientific Software - Peer-reviewed
- R
Published by Bisaloo over 5 years ago
lightr - lightr 1.1
New features and major changes
datecolumn in metadata is now always formatted as ISO 8601.lightrcan now import AvaSoft8 files (test files provided by M.D. Shawkey and L. Swierk), via the functionslr_parse_rfl8()/lr_parse_raw8().lightrcan correctly importsTRMfiles from AvaSoft 6.0 (previously it only supported files from AvaSoft 7.0).lightrcan now import binary.spcfiles (via thelr_parse_spc()parser). This format is used by OceanInsight and CRAIC.
Minor changes
- new test suite on a different locale (in this case
fr_FR.UTF-8) to ensure parsing is locale-independent. - warnings on CRAN build system for platforms that don't support markdown 2 have been fixed.
- new, stricter tests for various file formats.
jdxfiles saved in a locale that uses,as the decimal separator are now parsed correctly.- Avantes exported files in non-English locales (
tttandtrtfiles) are now parsed correctly again (this was a regression compared to pavo'sgetspec()). Thanks to A. Fargevieille for reporting the issue and providing a test file.
Scientific Software - Peer-reviewed
- R
Published by Bisaloo almost 6 years ago
lightr - lightr 1.0
New features and major changes
- parallel processing now relies on the
futurepackage, which offers windows and high performance computing (HPC) environments support. The progress bar is produced by theprogressrpackage and can be customised as well. lr_parse_generic()(and thuslr_get_spec()) now works with non-UTF8 files (this was a regression compared to pavo'spavo::getspec()).lr_get_spec()now has a newinterpolateargument to determine whether you want your data interpolated and pruned at every nm or not.
Minor changes
readBin()(in the binary Avantes parser) now has an explicitendianvalue, making this package portable to platform that use big endians.- documentation has been updated to follow the rebranding of OceanOptics into OceanInsight.
- vignette chunks that use
pavonow only run if the package is available. savetimefield is now extracted from converted avantes files (when available).
Scientific Software - Peer-reviewed
- R
Published by Bisaloo about 6 years ago
lightr - lightr 0.1
- First CRAN release
Scientific Software - Peer-reviewed
- R
Published by Bisaloo over 6 years ago