Changelog
metabodecon 1.1.1
Development Branch:
test-glc
API:
- Fixed a bug in
generate_lorentz_curves()
that caused the function to always use file format “bruker”, even when file format “jcampdx” was specified.
Datasets:
- Fixed filenames of samples in blood dataset (renamed from
Bood_<nr>
toblood_<nr>
). - Renamed
example_datasets/jcampdx/urine/urine.dx
toexample_datasets/jcampdx/urine/urine_1.dx
and renamedexample_datasets/bruker/urine/urine/
toexample_datasets/bruker/urine/urine_1/
. This was done becauselist.files
seems to return different orderings forurine.dx
andurine_2.dx
in different operating systems, whereasurine_1.dx
andurine_2.dx
are sorted the same way everywhere. This makes it easier to write clear and concise test cases, because we don’t need to check for file ordering.
Documentation:
- Fixed broken image in vignettes/FAQ.Rmd.
Testing:
- Added unit tests for
generate_lorentz_curves()
. - Enabled parallel processing for unit tests.
- Created initial versions of
tests/testthat/test-generate_lorentz_curves-[1-4].R
. - Added
generate_lorentz_curves_v2()
toDESCRIPTION/Config/testthat/start-first
. - Adjusted existing tests to use the updated version of
example_datasets
(sampleurine
was renamed tourine_1
, as mentioned in above in section Datasets)
Internal:
- Added functions
%||%
,msg()
andmsgf
toR/util.R
. - Added elements
range_water_signal_ppm
andsignal_free_region
to returned list of functiondeconvolute_spectrum
. - Function
with
now prints error messages to stderr even if the message stream is redirected. - Copied function
deconvolution()
fromR/MetaboDecon1D.R
toR/main_v2.R
as.deconvolute_spectrum
. - Fixed order of params in
deconvolution
. - Fixed
download_example_datasets()
. Argumentoverwrite
is passed correctly on tocache_example_datasets()
. - Changed URL of example datasets
xds$url
fromhttps://github.com/spang-lab/metabodecon/releases/download/v1.0.2/example_datasets.zip
tohttps://github.com/spang-lab/metabodecon/releases/download/v1.1.0/example_datasets.zip
. - Improved
cache_example_datasets()
. Extraction now only is done ifextract == TRUE
AND the resulting folder does not yet exist (saves approx. 2-3s on each call). To overwrite a possible existing folder, argumentoverwrite
can be set to TRUE. - Fixed formatting of
test_helpers.R
- Added linter config
.lintr
metabodecon 1.1.0
API:
- Improved function
download_example_datasets()
by adding caching and making it more stable - Replaced function
get_data_dir()
withdatadir()
and its helper functionsdatadir_persistent()
,datadir_temp()
andtempdir
- Function
get_data_dir()
is now deprecated in favour ofdatadir()
Documentation:
- Added question about file structure to vignettes/FAQ.Rmd
- Created categories for function reference in _pkgdown.yml
Datasets:
- Moved
misc/datasets
tomisc/example_datasets
- Moved
misc/examples/usage_example.R
tomisc/code_examples/sage_example.R
Internal:
- Added unit tests
- Removed script
check_package.R
- Moved functions from
util.R
todatadir.R
- Added
grDevices
,stats
andutils
as internal imports - Added lots of test helper functions in
R/test_helpers.R
- Added function
generate_lorentz_curves_v2()
which will replacegenerate_lorentz_curves()
as soon as we have new features AND 100% backwards compatibility - Fixed bug in
with()
that causedget_datadir_mock()
to be called after redirection took place causing unexpected message output - Fixed bug in
datadir()
that caused the resulting path to end with a slash on Unix-like systems and without a slash on Windows, iffile
was not specified -
RUN_SLOW_TESTS
is now set to TRUE for the CI pipeline
metabodecon 1.0.3
API:
- Updated
get_data_dir()
to accept"blood"
as new value for parameterdataset_name
- Updated
download_example_datasets()
to download the datasets from the github repo instead of the old spang-lab repo
Documentation:
- Removed table of contents from
README.md
as it’s a bit overkill for approx. 50 lines of text - Improved documentation
Internal:
- Switched from MIT License to GPL-3 to match the license of the predecessor package
MetaboDecon1D
- Added
docs
folder to.gitignore
. Reason: we changed all vignettes to pkgdown articles which will be displayed only at our Github Pages website and can be regenerated from foldervignettes
upon deployment. - Created
TODOS.md
and added it to.Rbuildignore
- Improved
.gitignore