From 73ab7c0c847e5eac54055c9dbee46572c48cc02e Mon Sep 17 00:00:00 2001 From: Jon Clayden Date: Wed, 17 May 2023 19:11:02 +0100 Subject: [PATCH] Release v1.5.0 --- DESCRIPTION | 4 ++-- NEWS | 17 +++++++++++++++++ inst/include/RNifti.h | 2 +- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 7ed9446..526c24f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: RNifti -Version: 1.4.5 -Date: 2023-01-30 +Version: 1.5.0 +Date: 2023-05-17 Title: Fast R and C++ Access to NIfTI Images Authors@R: c(person("Jon", "Clayden", role=c("cre","aut"), email="code@clayden.org", comment=c(ORCID="0000-0002-6608-0619")), diff --git a/NEWS b/NEWS index f52a0ae..9d779ed 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,23 @@ Significant changes to the RNifti package are laid out below for each release. =============================================================================== +VERSION 1.5.0 + +- The `writeNifti()` and `writeAnalyze()` functions gain a "compression" + argument to control the compression level used when writing gzipped images. +- The viewer will now show 4D images with fourth dimension 3 as vectors if the + `RNifti.d4vectors` option is `TRUE`. This is off by default (following the + previous behaviour) as it's less explicit than an image with a vector intent. +- The `niftiHeader()` function will no longer call `asNifti()` on an argument + that looks like a path, as this will wastefully read in the pixel data when + only the metadata is needed. +- Support for `MriImage` objects with complex or RGB types has been added. +- `cfloat` and `cdouble` are now additionally accepted as datatypes for 32-bit + and 64-bit floating-point complex types, respectively. +- The upstream NIfTI libraries have been updated. + +=============================================================================== + VERSION 1.4.5 - The package now works around the deprecation of `std::iterator` in C++17. diff --git a/inst/include/RNifti.h b/inst/include/RNifti.h index 2327b60..fc224c2 100644 --- a/inst/include/RNifti.h +++ b/inst/include/RNifti.h @@ -8,7 +8,7 @@ // Defined since RNifti v0.10.0, and equal to 100 * (major version) + (minor version). May not // change if the API does not change, and in particular never changes with patch level -#define RNIFTI_VERSION 104 +#define RNIFTI_VERSION 105 // Versions 1 and 2 of the NIfTI reference library are mutually incompatible, but RNifti does some // work to get them to play nicely: