addResources | R Documentation |
Add resource metadata to a local ExperimentHub database
addResources(pathToPackage, fileName=character(), insert = FALSE, ...)
pathToPackage |
Full path to data package including package name. |
fileName |
Name of single metadata file located in "inst/extdata". If none is provided the function looks for a file named "metadata.csv". |
insert |
A When |
... |
TDB. Currently not used. |
This function is used by the Bioconductor Core team to add new metadata to the production database.
When insert
is TRUE, addResources
attempts to add the metadata
to the local database. (NOTE: A local database can be created with the
ExperimentHub docker). Records in ExperimentHub must have unique file names.
If the new metadata have duplicate file names a warning is thrown
and the records are omitted from those added to the database.
This function does not add data to an AWS S3 bucket. ExperimentHub packages do not have 'recipes' that generate data on the fly. Instead, data files are provided by the maintainer in final form and added to the appropriate S3 location in a separate step.
A list of ExperimentHubMetadata objects.
ExperimentHubMetadata
AnnotationHubMetadata
makeExperimentHubMetadata
## Not run:
## Generate metadata for inspection
addResources("/home/vobencha/mypackage", insert=FALSE)
## Inset metadata into ExperimentHub database
addResources("/home/vobencha/mypackage", insert=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.