.onLoad <- function(libname, pkgname){
ns <- asNamespace(pkgname)
path <- system.file("extdata", package=pkgname, lib.loc=libname)
files <- list.files(path, pattern="\\.sqlite$", full.names=TRUE)
for(i in seq_len(length(files))){
objname <- sub(".sqlite$","",basename(files[i]))
jasparDb <- new("JASPAR2020", db=files[i])
assign(objname, jasparDb, envir=ns)
namespaceExport(ns, objname)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.