Description Usage Arguments Value Examples
Given a string of the format "database_driver://host/database_name", pull out the 3 pieces of information and return them as a named list.
1 | parseDatabaseUri(database.uri)
|
database.uri |
A string of the format "database_driver://host/database_name" |
A named list containing the driver, host, and database name from the supplied string
1 2 3 4 5 6 7 | # Parse a URI for a local PostgreSQL database called "gtf"
parsed.URI <- parseDatabaseUri("postgres://localhost/gtf")
# Parse a URI for the included SQLite database "vrk2.neighborhood.hg38.gtfAnnotation.db" in the local documents folder
db.address <- system.file(package="trena", "extdata")
genome.db.uri <- paste("sqlite:/", db.address, "vrk2.neighborhood.hg38.gtfAnnotation.db", sep = "/")
parsed.URI <- parseDatabaseUri(genome.db.uri)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.