Releases: ropensci/lightr
Releases · ropensci/lightr
lightr 1.7.1
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()
.
lightr 1.6.2
Minor changes
- fix failing tests on CRAN due to unattached dependency
lightr 1.6.1
Minor changes
- fix failing tests on CRAN caused by non UTF-8 files
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 fromdate
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
Major breaking changes
- the
cores
argument inlr_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 newmetadata
argument (defaults toTRUE
) to
determine if metadata should be exported in a csv file as well alongside the
spectral data.
lightr 1.4
Minor changes and bug fixes
- Output of the low-level parsers
lr_parse_XXXX()
is now a named list with
elementsdata
andmetadata
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
lightr 1.3
Minor changes
- disable hash tests on Solaris (the output is still checked by other tests)
lightr 1.2
Minor changes
- fixed tests on platform with no long-doubles ('noLD')
- restored tests on 32bits machines
spec_ID
extraction from Avantes exported files (ttt
andtrt
) is now
more robust, meaning it should work for more files.
lightr 1.1
New features and major changes
date
column in metadata is now always formatted as ISO 8601.lightr
can now import AvaSoft8 files (test files provided by M.D. Shawkey
and L. Swierk), via the functionslr_parse_rfl8()
/lr_parse_raw8()
.lightr
can correctly importsTRM
files from AvaSoft 6.0 (previously it
only supported files from AvaSoft 7.0).lightr
can now import binary.spc
files (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.
jdx
files saved in a locale that uses,
as the decimal separator are now
parsed correctly.- Avantes exported files in non-English locales (
ttt
andtrt
files) 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.