R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname)
{
     pfile=file.path(find.package("plasFIA"), "data","plasSet.rda")
     load(pfile)
     nms <- file.path(system.file(package="plasFIA"),"mzML",
         gsub("/", .Platform$file.sep, basename(attr(plasSet, "classes")[,1])))
     plasSet@classes[,1] <- nms
     plasSet@path<-file.path(find.package("plasFIA"), "mzML")
     save(plasSet,file=pfile)
}
adelabriere/plasFIA documentation built on May 28, 2019, 12:01 p.m.