library("MALDIquant")
library("MALDIquantForeign")
## get example directory
exampleDirectory <- system.file("exampledata", package="MALDIquantForeign")
## import
if (requireNamespace("RNetCDF", quietly=TRUE)) {
s <- importCdf(exampleDirectory)
} else {
message("You have to install the RNetCDF package to use importCdf.")
}
Run the code above in your browser using DataLab