Learn R Programming

⚠️There's a newer version (2.4.6) of this package.Take me there.

RSQLite

Embeds the SQLite database engine in R, providing a DBI-compliant interface. SQLite is a public-domain, single-user, very light-weight database engine that implements a decent subset of the SQL 92 standard, including the core table creation, updating, insertion, and selection operations, plus transaction management.

You can install the latest released version from CRAN with:

Or install the latest development version from GitHub with:

To install from GitHub, you’ll need a development environment.

Discussions associated with DBI and related database packages take place on R-SIG-DB. The website Databases using R describes the tools and best practices in this ecosystem.

Basic usage

Acknowledgements

Many thanks to Doug Bates, Seth Falcon, Detlef Groth, Ronggui Huang, Kurt Hornik, Uwe Ligges, Charles Loboz, Duncan Murdoch, and Brian D. Ripley for comments, suggestions, bug reports, and/or patches.


Please note that the ‘RSQLite’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Copy Link

Version

Install

install.packages('RSQLite')

Monthly Downloads

178,166

Version

2.2.5

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Maintainer

Kirill Müller

Last Published

March 27th, 2021

Functions in RSQLite (2.2.5)

dbListResults,SQLiteConnection-method

dbListResults
SQLite

Connect to an SQLite database
dbReadTable,SQLiteConnection,character-method

Read a database table
datasetsDb

A sample sqlite database
dbWriteTable,SQLiteConnection,character,data.frame-method

Write a local data frame or file to the database
SQLiteResult-class

Class SQLiteResult (and methods)
SQLiteConnection-class

Class SQLiteConnection (and methods)
SQLiteDriver-class

Class SQLiteDriver (and methods)
fetch,SQLiteResult-method

Fetch
dbBeginTransaction

Generic for creating a new transaction
initExtension

Add useful extension functions
dbSendPreparedQuery

Deprecated querying tools
sqliteCopyDatabase

Copy a SQLite database
sqliteBuildTableDefinition

Build the SQL CREATE TABLE definition as a string
initRegExp

Add regular expression operator
sqlite-transaction

SQLite transaction management
rsqliteVersion

RSQLite version
reexports

Objects exported from other packages
sqliteSetBusyHandler

Configure what SQLite should do when the database is locked
sqliteQuickColumn

Return an entire column from a SQLite database
make.db.names,SQLiteConnection,character-method

Make R/S-Plus identifiers into legal SQL identifiers
isIdCurrent

isIdCurrent