Running examples in ‘MALDIrppa-Ex.R’ failed
The error most likely occurred in:

> ### Name: alignPeaks
> ### Title: Compact peak alignment process for 'MassPeaks' objects
> ### Aliases: alignPeaks
> 
> ### ** Examples
> 
> # Load example data
> 
> data(spectra) # list of MassSpectra class objects
> 
> # Some pre-processing
> 
> spectra <- screenSpectra(spectra)$fspectra
> spectra <- transformIntensity(spectra, method = "sqrt")
> spectra <- wavSmoothing(spectra)
> spectra <- removeBaseline(spectra)
> peaks <- detectPeaks(spectra)
> 
> # Peak alignment
> 
> peaks <- alignPeaks(peaks, minFreq = 0.8)

 *** caught segfault ***
address (nil), cause 'memory not mapped'

Traceback:
 1: approxfun(x = lo$x, y = lo$y, rule = 2L)
 2: approxfun(x = lo$x, y = lo$y, rule = 2L)
 3: (function (x, d, ...) {    lo <- lowess(x = x, y = d, ...)    approxfun(x = lo$x, y = lo$y, rule = 2L)})(x = c(4364.52, 4613.97, 4769.82, 5383.69, 6256.37, 7276.77, 7870.87, 9228.19, 9542.24), d = c(1.0119518716574, -3.42249307479233, 0.080960451977262, -0.139366391184922, 1.46944591029023, 0.361604278074992, 0.281595092024872, 0.68194285714344, -0.106210526315408))
 4: do.call(warpingFunction, arguments)
 5: FUN(X[[i]], ...)
 6: lapply(lIdx[-1L], function(i) {    notNA <- !is.na(binnedMass[i])    arguments$x <- mass[i][notNA]    arguments$d <- d[i][notNA]    if (!length(arguments$x)) {        nomatchReporter("Could not match any peak in spectrum ",             samples[i[1L]] - 1L, " to a reference peak.")        NA    }    else if (length(arguments$x) < minPeaks) {        nomatchReporter("Could not match enough peaks in spectrum",             samples[i[1L]] - 1L, "to the reference peaks.\n",             minPeaks, " matches required, just ", length(arguments$x),             " found.")        NA    }    else {        do.call(warpingFunction, arguments)    }})
 7: determineWarpingFunctions(x, reference = refPeaks, tolerance = tolerance)
 8: alignPeaks(peaks, minFreq = 0.8)
An irrecoverable exception occurred. R is aborting now ...