Skip to content

spant

MR Spectroscopy Analysis Tools

v3.9.0 · Feb 23, 2026 · GPL-3

Description

Tools for reading, visualising and processing Magnetic Resonance Spectroscopy data. The package includes methods for spectral fitting: Wilson (2021) <DOI:10.1002/mrm.28385>, Wilson (2025) <DOI:10.1002/mrm.30462> and spectral alignment: Wilson (2018) <DOI:10.1002/mrm.27605>.

Downloads

541

Last 30 days

7443rd

2K

Last 90 days

8.1K

Last year

Trend: -44.6% (30d vs prior 30d)

CRAN Check Status

1 ERROR
1 NOTE
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 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 ERROR
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (3 non-OK)
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.3Mb
  sub-directories of 1Mb or more:
    R     2.0Mb
    doc   2.1Mb
ERROR r-release-macos-arm64

re-building of vignette outputs

Error(s) in re-building vignettes:
sh: line 1: 52837 Segmentation fault: 11  '/Library/Frameworks/R.framework/Resources/bin/R' --vanilla --no-echo > '/Volumes/Temp/tmp/RtmpZ9klbH/filec1d92978bad1' 2>&1 < '/Volumes/Temp/tmp/RtmpZ9klbH/filec1d93531049c'
--- re-building ‘abfit-baseline-opts.Rmd’ using rmarkdown

 *** caught segfault ***
address 0x2, cause 'invalid permissions'

Traceback:
 1: eigen(H_mat_list$H_mat, symmetric = TRUE)
 2: spin_sys(spin_params, ft, ref)
 3: pul_seq(group, ft, ref, ...)
 4: sim_mol(mol_list[[n]], pul_seq, ft, ref, fs, N, xlim, ...)
 5: sim_basis(get_1h_brain_basis_paras(ft = acq_paras$ft, lcm_compat = lcm_compat),     seq_press_ideal, acq_paras = acq_paras, xlim = xlim, TE1 = TE1,     TE2 = TE2)
 6: sim_basis_1h_brain_press(mrs_data)
 7: eval(expr, envir)
 8: eval(expr, envir)
 9: withVisible(eval(expr, envir))
10: withCallingHandlers(code, error = function (e) rlang::entrace(e), message = function (cnd) {    watcher$capture_plot_and_output()    if (on_messa
...[truncated]...
= FALSE, quiet = quiet)        output <- find_vignette_product(name, by = "texi2pdf",             engine = engine)    }}, error = function(e) {    OK <<- FALSE    message(gettextf("Error: processing vignette '%s' failed with diagnostics:\n%s",         file, conditionMessage(e)))})
41: tools:::.buildOneVignette("spant-metabolite-simulation.Rmd",     "/Volumes/Builds/packages/big-sur-arm64/results/4.5/spant.Rcheck/vign_test/spant",     TRUE, FALSE, "spant-metabolite-simulation", "UTF-8", "/Volumes/Temp/tmp/RtmpZ9klbH/filec1d95377071d.rds")
An irrecoverable exception occurred. R is aborting now ...
--- re-building ‘spant-preprocessing.Rmd’ using rmarkdown
2026-04-06 10:54:42.311 R[53799:221557] XType: Using static font registry.
--- finished re-building ‘spant-preprocessing.Rmd’

SUMMARY: processing the following files failed:
  ‘abfit-baseline-opts.Rmd’ ‘spant-basis-simulation.Rmd’
  ‘spant-intro.Rmd’ ‘spant-metabolite-simulation.Rmd’

Error: Vignette re-building failed.
Execution halted
ERROR r-release-macos-arm64

tests

Running ‘testthat.R’ [1s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(spant)
  spant 3.9.0
  
  Attaching package: 'spant'
  
  The following object is masked from 'package:stats':
  
      sd
  
  > 
  > test_check("spant")
  
   *** caught segfault ***
  address 0x2, cause 'invalid permissions'
  
  Traceback:
   1: eigen(H_mat_list$H_mat, symmetric = TRUE)
   2: spin_sys(spin_params, ft, ref)
   3: pul_seq(group, ft, ref, ...)
   4: sim_mol(mol_list[[n]], pul_seq, ft, ref, fs, N, xlim, ...)
   5: sim_basis(brain_basis_paras, pul_seq, acq_paras, xlim = xlim,     ...)
   6: sim_brain_1h(pul_seq = seq_press_ideal, full_output = TRUE, type = "normal_v1")
   7: eval(code, test_env)
   8: eval(code, test_env)
   9: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) { 
...[truncated]...
conditionMessage(cnd), "\n")    NULL})
  37: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  38: test_files_serial(test_dir = test_dir, test_package = test_package,     test_paths = test_paths, load_helpers = load_helpers, reporter = reporter,     env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  39: test_files(test_dir = path, test_paths = test_paths, test_package = package,     reporter = reporter, load_helpers = load_helpers, env = env,     stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  40: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  41: test_check("spant")
  An irrecoverable exception occurred. R is aborting now ...

Check History

ERROR 11 OK · 1 NOTE · 0 WARNING · 2 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:
  > library(testthat)
  > library(spant)
  spant 3.9.0
  
  Attaching package: 'spant'
  
  The following object is masked from 'package:stats':
  
      sd
...[truncated]...
age = load_package, parallel = parallel, shuffle = shuffle)
  40: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  41: test_check("spant")
  An irrecoverable exception occurred. R is aborting now ...
ERROR r-release-macos-arm64

tests

Running ‘testthat.R’ [1s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(spant)
  spant 3.9.0
  
  Attaching package: 'spant'
  
  The following object is masked from 'package:stats':
  
      sd
...[truncated]...
age = load_package, parallel = parallel, shuffle = shuffle)
  40: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  41: test_check("spant")
  An irrecoverable exception occurred. R is aborting now ...
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.3Mb
  sub-directories of 1Mb or more:
    R     2.0Mb
    doc   2.1Mb

Dependency Network

Dependencies Reverse dependencies abind plyr pbapply pracma stringr expm signal minpack.lm ptw mmand RNifti RNiftyReg fields numDeriv nloptr +2 more dependencies spant

Version History

new 3.9.0 Mar 10, 2026
updated 3.9.0 ← 3.8.0 diff Feb 22, 2026
updated 3.8.0 ← 3.7.0 diff Dec 15, 2025
updated 3.7.0 ← 3.6.0 diff Nov 19, 2025
updated 3.6.0 ← 3.5.0 diff Sep 21, 2025
updated 3.5.0 ← 3.4.0 diff Aug 17, 2025
updated 3.4.0 ← 3.3.0 diff Jun 10, 2025
updated 3.3.0 ← 3.2.0 diff Mar 27, 2025
updated 3.2.0 ← 3.1.0 diff Feb 13, 2025
updated 3.1.0 ← 2.24.0 diff Dec 16, 2024
updated 2.24.0 ← 2.23.0 diff Nov 13, 2024
updated 2.23.0 ← 2.22.0 diff Aug 26, 2024
updated 2.22.0 ← 2.21.0 diff Jul 10, 2024
updated 2.21.0 ← 2.20.0 diff May 29, 2024
updated 2.20.0 ← 2.19.0 diff Apr 30, 2024
updated 2.19.0 ← 2.18.0 diff Mar 21, 2024
updated 2.18.0 ← 2.17.0 diff Feb 22, 2024
updated 2.17.0 ← 2.16.0 diff Nov 27, 2023
updated 2.16.0 ← 2.15.0 diff Oct 22, 2023
updated 2.15.0 ← 2.14.0 diff Sep 13, 2023