Description Usage Arguments Examples
Convert sql file to sqlite database
1 | sql2sqlite(sql.file = "", statements = "", dbname = "", verbose = FALSE, ...)
|
sql.file |
SQL file of sqlite database dumped |
statements |
SQL statements split by ';\n' (small dataset) |
dbname |
Path of output sqlite database |
verbose |
Ligical indicating wheather show the log message |
... |
Other parameters be used in dbSendQuery |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | sql.file <- system.file('extdata', 'demo/hg19_avsnp147.sqlite.sql', package = 'anor')
out.sqlite <- tempfile()
sqlite <- Sys.which(c('sqlite3', 'sqlite'))
sqlite <- sqlite[sqlite != ''][1]
sqlite <- unname(sqlite)
if (!is.na(sqlite)) {
sql2sqlite(sql.file = sql.file, dbname = out.sqlite,
verbose = FALSE)
unlink(out.sqlite)
}
statements <- paste0(readLines(sql.file), collapse = '\n')
sql2sqlite(statements = statements, dbname = out.sqlite,
verbose = FALSE)
unlink(out.sqlite)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.