R/zzz.R

Defines functions .onLoad

#' @import ExperimentHub
#' @importFrom utils read.csv
.onLoad <- function(libname, pkgname) {
  fl <- system.file("extdata", "metadata.csv", package="bodymapRat")
  titles <- read.csv(fl, stringsAsFactors=FALSE)$Title
  createHubAccessors(pkgname, titles)
}
stephaniehicks/bodymapRat documentation built on June 22, 2021, 6:32 a.m.