Description Usage Arguments Value Author(s) References Examples
View source: R/initExtension.R
This function is a generalization of initExtension in the RSQLite package. This allows us to load extensions from different compiled DLLs/DSOs.
1 | sqliteExtension(db, dll = getLoadedDLLs()[[pkg]][["path"]], pkg = "RSQLite")
|
db |
the SQLite database connection into which the extension will be loaded. The extension needs to be loaded for each new database. |
dll |
the full path the DLL containing the compiled code. |
pkg |
the name of an R package whose compiled code contains the extension code. This is a more convenient way to locate the DLL/DSO. |
This function is used for its side effect.
Duncan Temple Lang, adapted from initExtension
in RSQLite.
https://www.sqlite.org/loadext.html
1 2 3 4 | library(RSQLite)
db = dbConnect(SQLite(), ":memory:")
sqliteExtension(db, pkg = "RSQLite")
sqliteExtension(db, pkg = "RSQLiteUDF")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.