Skip to content

Releases: ropensci/lightr

lightr 1.9.0

21 Jul 16:07

Choose a tag to compare

New features

  • cases where a mix of .csv and other 'csv-like but not quite csv' formats are
    passed to lr_get_spec() are now handled better, after a report from @bittonp
    (@Bisaloo, #58). This also means that it's no longer necessary to explicitly
    set sep = "," when trying to parse csv files (#15).
  • lr_parse_procspec() gains a new argument verify_checksum to verify if the
    data has been tampered with since its creation by the official OceanView
    software (@Bisaloo, #29).
  • lr_parse_spc() (OceanOptics, CRAIC) and
    lr_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 return savetime for .spc, .RFL8, .RAW8,
    IRR8 files.

lightr 1.8.0

01 Dec 18:29

Choose a tag to compare

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 datetime field 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 check NOTE and thus removing the strain on CRAN reviewers (@Bisaloo, #63).
    The future package was already a indirect dependency via the future.apply package.

lightr 1.7.1

21 Mar 21:58

Choose a tag to compare

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)

lightr 1.7.0

14 May 16:57

Choose a tag to compare

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().

lightr 1.6.2

09 Nov 07:56

Choose a tag to compare

Minor changes

  • fix failing tests on CRAN due to unattached dependency

lightr 1.6.1

09 Nov 07:56

Choose a tag to compare

Minor changes

  • fix failing tests on CRAN caused by non UTF-8 files

lightr 1.6.0

22 Jul 14:42

Choose a tag to compare

Major breaking changes

  • The date returned in metadata (by lr_get_metadata(),
    lr_convert_tocsv(metadata = TRUE) and lr_parse_XXXX()) is now a datetime
    (with UTC as timezone and format %Y-%m-%d %H:%M:%S).
    The column name in lr_get_metadata() has been updated from date to
    datetime to 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)

lightr 1.5.0

19 Jun 09:39

Choose a tag to compare

Major breaking changes

  • the cores argument in lr_get_spec(), lr_get_metadata(), and
    lr_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 new metadata argument (defaults to TRUE) to
    determine if metadata should be exported in a csv file as well alongside the
    spectral data.

lightr 1.4

22 Mar 08:23

Choose a tag to compare

Minor changes and bug fixes

  • Output of the low-level parsers lr_parse_XXXX() is now a named list with
    elements data and metadata
  • lr_parse_raw8() and lr_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

lightr 1.3

01 Jul 17:25

Choose a tag to compare

Minor changes

  • disable hash tests on Solaris (the output is still checked by other tests)