inst/extpacksupp/zzz.R

.onLoad = function(libname, pkgname) {
#
# this is for repositioning in packages generated by externalize()
# this comes from GGtools inst/extpacksupp/zzz.R
#
# if you want to get the expression data loadable
# at load time, use the namespace manipulations commented
# out below, but getSS then needs to be changed
#
# to avoid confusion the name of ExpressionSet should start with a "."
# if we do this
#
#  ns = asNamespace(pkgname)
  cn = gsub(".rda", "", dir(system.file("parts",
     package=pkgname)))
#  clnpack = gsub("Pack", "", pkgname)
#  obname = paste(clnpack, "Ex", sep="")
#  eset = get(load(system.file("data/eset.rda",
#     package=pkgname)))
#  assign(obname, eset, envir=ns)
#  namespaceExport(ns, obname)
  cat(paste("To get a tailored smlSet, use getSS(\"", 
   pkgname, "\", [chrvec])", sep=""), "\n")
  cat("available chromosomes are named ",
        selectSome(cn), "\n")
}

Try the GGtools package in your browser

Any scripts or data that you put into this service are public.

GGtools documentation built on Nov. 8, 2020, 6:32 p.m.