In [14]:
# Using the library
library("RSQLite")
sqlite <- dbDriver("SQLite")
fdb <- "fsql/mydb.db"
db <- dbConnect(sqlite, fdb)

In [17]:
# Results
tables <- dbListTables(db)
results <- dbSendQuery(db, paste("SELECT * FROM ", tables))
data <- fetch(results,10)


Warning message:
In sqliteSendQuery(con, statement, bind.data): Closing result set with pending rows

In [18]:
data


Out[18]:
idChrStartEnd
11chr11038547110385471
22chr11772236317722363
33chr14579626945796269
44chr14579855545798555
55chr1121280613121280613
66chr1150860471150860471
77chr1161332092161332092
88chr1193094375193094375
99chr1193107187193107187
1010chr1222045446222045446

In [ ]:
*