From 470fbff09b26c5e013d2417f40d733b4cefba7df Mon Sep 17 00:00:00 2001 From: Philipp Baumann Date: Sun, 5 Apr 2020 11:49:41 +0200 Subject: [PATCH] Bump version to 0.1.0.9001 --- DESCRIPTION | 2 +- NEWS.md | 36 +++++++++++++++++++++++++++++++----- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index d0963c8..e18bb38 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Type: Package Package: simplerspec -Version: 0.1.0.9000 +Version: 0.1.0.9001 Title: Soil and plant spectroscopic model building and prediction Description: Functions that cover reading of spectral data, outlier removal, diff --git a/NEWS.md b/NEWS.md index 167c69b..7ef001d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,10 +1,36 @@ +# simplerspec 0.1.0.9001 + +* `resample_spc()` now supports flexible spectra and x-axis types as inputs. Its + interface has been carefully augmented without breaking previous + functionality ([#9](https://github.com/philipp-baumann/simplerspec/issues/9) + * New argument `column_in` specifies the string or name (unquoting support) + of the input column that contains the list of spectra. The following + spectrum types, which are automatically matched against the list-column that + contains the corresponding x-unit value vectors, are currently supported: + `spc` (raw or unprocessed spectra), `spc_rs` (resampled spectra), + `spc_mean` (mean spectra), `spc_nocomp` (spectra prior atmospheric + compensation), `sc_sm` (single channel sample spectra), `sc_rf` (single + channel reference spectra), `spc_pre` (preprocessed spectra). + * New argument `interpol_method` specifying the interpolation method is + introduced. Default is `"linear"` to achieve identical results with both + prospectr v0.1.0 and v0.2.0. The current CRAN prospectr v0.2.0 has changed + the default of `interpol` to `"spline"`. The previous `resample_spc()` + unfortunatelty did not explicitly state the method internally, and relied + on the default instead. The measures taken ensure downward compatibility of + `resample_spc()` with previous versions of prospectr and simplerspec. + * The arguments gain more defensive checks inside the function (supplied types + and presence of objects in spectra). + * The function components and the help are updated accordingly. Clearer + vocabulary to describe the functionality and more consistent terminology for + physical quantities and R objects are used. + +* Add UTF-8 support to DESCRIPTION because roxygen2 version 7.1.0 requires it. + + # simplerspec 0.1.0.9000 -* `model_list` can now also be a list of "train" objects and not only a simplerspec `fit_pls()` output. This saves memory when doing predictions -* Omit message "Joining..." by explicitly providing `by` argument in `dplyr::inner_join` -* Ungroup when slicing tibble so that return data frame does not show "Groups: sample_id [?]" when printing -* subsequent simplerspec processing functions return (list of) data.table's -> consistency -* newly planned json import/export API based on jsonlite package can passes column names as fields_id only for data.frames and not matrices +* Start using Kirill's `{fledge}` for tracking and communicating the simplerspec + development process in `NEWS`. # simplerspec 0.1.0