Skip to content

dispersionIndicators

Indicators for the Analysis of Dispersion of Datasets with Batched and Ordered Samples

v0.1.5 · Nov 18, 2025 · MIT + file LICENSE

Description

Provides methods for analyzing the dispersion of tabular datasets with batched and ordered samples. Based on convex hull or integrated covariance Mahalanobis, several indicators are implemented for inter and intra batch dispersion analysis. It is designed to facilitate robust statistical assessment of data variability, supporting applications in exploratory data analysis and quality control, for such datasets as the one found in metabololomics studies. For more details see Salanon (2024) <doi:10.1016/j.chemolab.2024.105148> and Salanon (2025) <doi:10.1101/2025.08.01.668073>.

Downloads

235

Last 30 days

19319th

495

Last 90 days

1.1K

Last year

Trend: +64.3% (30d vs prior 30d)

CRAN Check Status

2 ERROR
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 ERROR
r-devel-windows-x86_64 ERROR
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
ERROR r-devel-macos-arm64

tests

Running ‘testthat.R’ [1s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(dispersionIndicators)
  > 
  > test_check("dispersionIndicators")
  Using poppler version 25.09.1
  Saving _problems/test-convex_function-512.R
  Saving _problems/test-convex_function-513.R
  File intra saved : /Volumes/Temp/tmp/Rtmp2Zd7ZF/Test_intra_distances_20260328.csv
  File inter saved : /Volumes/Temp/tmp/Rtmp2Zd7ZF/Test_inter_distances_20260328.csv
  File individual saved : /Volumes/Temp/tmp/Rtmp2Zd7ZF/Test_individual_distances_20260328.csv
  File inter saved : /Volumes/Temp/tmp/Rtmp2Zd7ZF/Test_inter_distances_20260328.csv
  File individual saved : /Volumes/Temp/tmp/Rtmp2Zd7ZF/Test_individual_distances_20260328.csv
  File intra saved : /Volumes/Temp/tmp/Rtmp2Zd7ZF/Test_intra_distances_20260328.csv
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 89 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-convex_function.R:512:9'): plot_all_convex_hulls works ───────
  Expected `hash_raw_md5(bitmap_batch)` to equal "9ad7981faf2205cd5ce1752027f8d2f5".
  Differences:
  `actual`:   "b3b107027cb344da8380d8f91db7c37c"
  `expected`: "9ad7981faf2205cd5ce1752027f8d2f5"
  
  ── Failure ('test-convex_function.R:513:9'): plot_all_convex_hulls works ───────
  Expected `hash_raw_md5(bitmap_global)` to equal "249def7d2a3066c226ebf242e0c51e70".
  Differences:
  `actual`:   "6304abaa3ceafbadf4b8bbd3a6eb6345"
  `expected`: "249def7d2a3066c226ebf242e0c51e70"
  
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 89 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(dispersionIndicators)
  > 
  > test_check("dispersionIndicators")
  Using poppler version 26.01.0
  Saving _problems/test-convex_function-503.R
  Saving _problems/test-convex_function-504.R
  File intra saved : D:\temp\2026_04_03_01_50_00_16606\RtmpEb1Kyx/Test_intra_distances_20260403.csv
  File inter saved : D:\temp\2026_04_03_01_50_00_16606\RtmpEb1Kyx/Test_inter_distances_20260403.csv
  File individual saved : D:\temp\2026_04_03_01_50_00_16606\RtmpEb1Kyx/Test_individual_distances_20260403.csv
  File 
...[truncated]...
csv
  File individual saved : D:\temp\2026_04_03_01_50_00_16606\RtmpEb1Kyx/Test_individual_distances_20260403.csv
  File intra saved : D:\temp\2026_04_03_01_50_00_16606\RtmpEb1Kyx/Test_intra_distances_20260403.csv
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 89 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-convex_function.R:503:11'): plot_all_convex_hulls works ──────
  Expected `hash_raw_md5(bitmap_batch)` to equal "68ee8d72e106debce2cc73b14ac9d0a8".
  Differences:
  `actual`:   "c69304af3a99abf3006f2dcb0b1909b5"
  `expected`: "68ee8d72e106debce2cc73b14ac9d0a8"
  
  ── Failure ('test-convex_function.R:504:11'): plot_all_convex_hulls works ──────
  Expected `hash_raw_md5(bitmap_global)` to equal "fdea43a93f991161ed4933ffb1bc0c0a".
  Differences:
  `actual`:   "821c41187e7afa601f15cfcdccc33e54"
  `expected`: "fdea43a93f991161ed4933ffb1bc0c0a"
  
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 89 ]
  Error:
  ! Test failures.
  Execution halted

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-macos-arm64

tests

Running ‘testthat.R’ [1s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional te
...[truncated]...
o equal "249def7d2a3066c226ebf242e0c51e70".
  Differences:
  `actual`:   "6304abaa3ceafbadf4b8bbd3a6eb6345"
  `expected`: "249def7d2a3066c226ebf242e0c51e70"
  
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 89 ]
  Error:
  ! Test failures.
  Execution halted

Dependency Network

Dependencies Reverse dependencies corpcor ggplot2 dispersionIndicators

Version History

new 0.1.5 Mar 10, 2026
updated 0.1.5 ← 0.1.4 diff Nov 17, 2025
updated 0.1.4 ← 0.1.1 diff Oct 30, 2025
new 0.1.1 Oct 15, 2025