Changelog
Source:NEWS.md
mnirs 0.6.0
Prepare for CRAN submission
NEWS.md is truncated to the most recent relevant release updates. The full NEWS.md remains in the
devbranch.Some development functions have been omitted from the package build in expectation of CRAN review. They are still present in
devbranch and can be installed withpak::pak("jemarnold/mnirs").
Updated core functions
filter_mnirs(): Method-specific arguments (e.g.orderformethod = "butterworth", orwidthformethod = "moving_average") removed from the generic function call. Continue to be passed to the appropriate method via.... Documentation and info/warning/abort messages updated.-
filter_ma()better separates effects ofpartialandna.rmargs:-
partial = FALSEby default returns NA at edges where insufficient number of samples are available compared to the specifiedwidthorspan. -
partial = TRUEcalculates mean values at edges, as long as one valid non-NAsample is available. -
na.rm = FALSEby default behaves as expected withmean(na.rm = FALSE), propagating anyNAs in the local window to the calculated mean with a warning.-
NOTE This differs from the behaviour of
na.rm = FALSEinfilter_butter(), which errors if there are any internalNAs present. This has not been changed.
-
NOTE This differs from the behaviour of
-
na.rm = TRUEignoresNAs and calculates local means as long as one valid sample is present.
-
-
- Add new arg:
points = TRUEwill plot points in addition to lines, as a useful quick shortcut. - Update
na.omitnow omits non-validc(NA, NaN, Inf, -Inf)values from plotting, not justNA.
- Add new arg:
palette_mnirs()can now accept either a single numeric value specifying the number of colours to return, or any number of (valid) character colour names.
mnirs 0.5.2
Shiny app
- Update online shiny app hosted at https://jemarnold-mnirs-app.share.connect.posit.cloud/ with basic reading and pre-processing functionality.
mnirs 0.5.1
Updated core functions
read_mnirs()now has better automated channel detection logic for “Artinis” / “Oxysoft” file formats.nirs_channelsandtime_channelcan be left blank to automatically “sample”, “time” (fromsample_rate), and nirs channel “2”.replace_outliers()now accepts numericoutlier_cutoffvalues for more precise outlier detection thresholds (previously was integers only). Documentation also updated.
mnirs 0.5.0
Updated core functions
-
read_mnirs()expandsevent_channelto work with integer “lap” numbers, or character event label as previous.- Should now work on more .csv file formats; previously read errors may have occured where the file contained header rows above the data table, resulting in improper detection of columns.
-
event_channelcan now be specified as an integerlapcolumn, in addition to a character column as previous. - Other {mnirs} functions may expect
event_channelto be either character or integer-ish.
-
extract_intervals():- Function arguments
startandendare used to specify one or both of a start and end point to the target interval. - Specify
start/endvalues with helper functionsby_time(),by_label(),by_lap(), andby_sample(). - Numeric values are automatically coerced to “time” values; Explicit integer values (e.g.
2L) are coerced to “lap”; Character strings are coerced to event “label”.
- Function arguments
mnirs 0.4.2 and prior
- Full previous changelog is available on the github
devbranch: https://github.com/jemarnold/mnirs/blob/dev/NEWS.md