inst/doc/CreateAnExperimentHubPackage.R

## ---- eval=FALSE--------------------------------------------------------------
#  .onLoad <- function(libname, pkgname) {
#  	fl <- system.file("extdata", "metadata.csv", package=pkgname)
#  	titles <- read.csv(fl, stringsAsFactors=FALSE)$Title
#  	createHubAccessors(pkgname, titles)
#  }

## ---- eval=FALSE--------------------------------------------------------------
#  library(ExperimentHub)
#  eh <- ExperimentHub()
#  myfiles <- query(eh, "PACKAGENAME")
#  myfiles[[1]]        ## load the first resource in the list
#  myfiles[["EH123"]]  ## load by EH id

## ---- eval=FALSE--------------------------------------------------------------
#  resourceA(metadata = FALSE) ## data are loaded
#  resourceA(metadata = TRUE)  ## metadata are displayed

Try the ExperimentHub package in your browser

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

ExperimentHub documentation built on April 17, 2021, 6:01 p.m.