Description Usage Arguments Value Examples
Append connection to dictionary
1 |
... |
named connections to append on current connections dictionary at |
Invisibly direct return from options("dwtools.db.conns"=...)
- the previous value for an option.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | suppressPackageStartupMessages(library(dwtools))
library(RSQLite) # install.packages("RSQLite")
sqlite1 = list(drvName="SQLite",dbname="sqlite1.db")
sqlite1$conn = dbConnect(SQLite(), dbname=sqlite1$dbname)
options("dwtools.db.conns"=list(sqlite1=sqlite1))
str(getOption("dwtools.db.conns"))
# add csv
csv1 = list(drvName = "csv")
# add sqlite second
sqlite2 = list(drvName="SQLite",dbname="sqlite2.db")
sqlite2$conn = dbConnect(SQLite(), dbname=sqlite2$dbname)
add.db.conns(csv1=csv1, sqlite2=sqlite2)
getOption("dwtools.db.conns")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.