Mercurial > repos > testtool > get_geo
view TxDb.Hsapiens.UCSC.hg19.knownGene/R/zzz.R @ 38:608ab56a90d0 draft
Uploaded
author | testtool |
---|---|
date | Mon, 14 Aug 2017 09:21:07 -0400 |
parents | ec7a1f7f9a94 |
children |
line wrap: on
line source
### ### Load any db objects whenever the package is loaded. ### .onLoad <- function(libname, pkgname) { ns <- asNamespace(pkgname) path <- system.file("extdata", package=pkgname, lib.loc=libname) files <- dir(path) for(i in seq_len(length(files))){ db <- loadDb(system.file("extdata", files[[i]], package=pkgname, lib.loc=libname),packageName=pkgname) objname <- sub(".sqlite$","",files[[i]]) assign(objname, db, envir=ns) namespaceExport(ns, objname) } }