I installed MALDIrppa using
…
remotes::install_github("Japal/MALDIrppa")
…
But have gotten to the part in my code that uses the wmtsa part of the package and now I keep getting an error:
spectra <- wavSmoothing(spectra, thresh.scale = 1)
plot(spectra[[1]], main=paste0("Smoothing"),xlim=c(760, 770))
smooth <- spectra [[1]]
Error in loadNamespace(name) : there is no package called ‘wmtsa’
-
stop(e)
-
value[3L]
-
tryCatchOne(expr, names, parentenv, handlers[[1L]])
-
tryCatchList(expr, classes, parentenv, handlers)
-
tryCatch(loadNamespace(name), error = function(e) stop(e))
-
getNamespace(ns)
-
asNamespace(ns)
-
getExportedValue(pkg, name)
-
wmtsa::wavShrink
-
fun(intensity(x))
-
FUN(X[[i]], ...)
-
lapply(x, FUN = transfIntensity, fun = function(x) wmtsa::wavShrink(x, thresh.scale = thresh.scale, ...))
-
wavSmoothing(spectra, thresh.scale = 1)
If anybody has any ideas of how to make this work I would be very grateful.