Nothing
datacache <- new.env(hash=TRUE, parent=emptyenv())
#PREFIX#_dbconn <- function() dbconn(datacache)
#PREFIX#_dbfile <- function() dbfile(datacache)
#PREFIX#_dbschema <- function(file="", show.indices=FALSE) dbschema(datacache,
file=file, show.indices=show.indices)
#PREFIX#_dbInfo <- function() dbInfo(datacache)
.onLoad <- function(libname, pkgname)
{
require("methods", quietly=TRUE)
require("PAnnBuilder", quietly=TRUE)
## Connect to the SQLite DB
dbfile <- system.file("extdata", "#PREFIX#.sqlite", package="#PKGNAME#",
lib.loc=libname)
assign("dbfile", dbfile, envir=datacache)
dbconn <- dbFileConnect(dbfile)
assign("dbconn", dbconn, envir=datacache)
## Create the AnnObj instances
ann_objs <- createAnnObjs("#TYPE#", "#PREFIX#", datacache, dbconn)
mergeToNamespaceAndExport(ann_objs, "#PKGNAME#" )
}
.onUnload <- function(libpath)
{
dbFileDisconnect(#PREFIX#_dbconn())
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.