#' list of QTL database
#'
#' @return result
#' @export
#' @importFrom RSQLite dbConnect
#' @importFrom RSQLite dbDisconnect
#' @importFrom RSQLite dbGetQuery
#' @importFrom RSQLite SQLite
#' @import knitr
#' @examples
#' listQTL()
listQTL <- function() {
con <- dbConnect(SQLite(), system.file("extdata", "animalqtldb.db", package = "AnimalQTLDB"))
if (isS4(con)) {
result <- dbGetQuery(con, "SELECT * from QTL_Version")
}
dbDisconnect(con)
colnames(result) <- c("QTL", "version")
return(result)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.