\name{BrowseDB} \alias{BrowseDB} \title{ View A Database Table In A Web Browser } \description{ Opens an html file in a web browser to show the contents of a table in a database. } \usage{ BrowseDB(dbFile, htmlFile=file.path(tempdir(), "db.html"), tblName = "DNA", identifier = "", limit = -1, orderBy = "row_names", maxChars = 50, ...) } \arguments{ \item{dbFile}{ A SQLite connection object or a character string specifying the path to the database file. } \item{htmlFile}{ Character string giving the location where the html file should be written. } \item{tblName}{ Character string specifying the table to view. } \item{identifier}{ Optional character string used to narrow the search results to those matching a specific identifier. If "" then all identifiers are selected. } \item{limit}{ Number of results to display. The default (\code{-1}) does not limit the number of results. } \item{orderBy}{ Character string giving the column name for sorting the results. Defaults to the order of entries in the database. Optionally can be followed by \code{" ASC"} or \code{" DESC"} to specify ascending (the default) or descending order. } \item{maxChars}{ Maximum number of characters to display in each column. } \item{\dots}{ Additional expressions to add as part of a where clause in the query. Further arguments provided in \dots will be added to the query separated by \code{" and "} as part of the where clause. } } \value{ Creates a table containing all the fields of the database table and opens it in the web browser for easy viewing. Returns \code{TRUE} if the html file was written successfully. } \author{ Erik Wright \email{DECIPHER@cae.wisc.edu} } \note{ If viewing a table containing sequences, the sequences are purposefully not shown in the output. } \seealso{ \code{\link{BrowseSequences}} } \examples{ db <- system.file("extdata", "Bacteria_175seqs.sqlite", package="DECIPHER") BrowseDB(db) }