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

> ### Name: spmblp
> ### Title: Polynomial Baseline Correction of a Matrix of Mid-infrared
> ###   Spectra
> ### Aliases: spmblp
> 
> ### ** Examples
> 
> data(spData)
> # Convert data frame to matrix
> spectra <- as.matrix(t(spData))
> # List of polynomial baseline components
> mblp <- spmblp(spectra, degree = 2, tol = 0.001, rep = 100)
Error in missing(t) || (t == FALSE) : 
  'length = 7469' in coercion to 'logical(1)'
Calls: spmblp
Execution halted
Running examples in ‘spftir-Ex.R’ failed
The error most likely occurred in:

> ### Name: spmblp
> ### Title: Polynomial Baseline Correction of a Matrix of Mid-infrared
> ###   Spectra
> ### Aliases: spmblp
> 
> ### ** Examples
> 
> data(spData)
> # Convert data frame to matrix
> spectra <- as.matrix(t(spData))
> # List of polynomial baseline components
> mblp <- spmblp(spectra, degree = 2, tol = 0.001, rep = 100)
Error in missing(t) || (t == FALSE) : 
  'length = 7469' in coercion to 'logical(1)'
Calls: spmblp
Execution halted