I’m very pleased to announce a new version of RSQLite 1.0.0. RSQLite is the easiest way to use SQL database from R:
|
|
RSQLite 1.0.0 is mostly a cleanup release. This means a lot of old functions have been deprecated and removed:
-
idIsValid()is deprecated; usedbIsValid()instead.dbBeginTransaction()is deprecated; usedbBegin()instead. UsedbFetch()instead offetch(). -
dbBuildTableDefinition()is nowsqliteBuildTableDefinition()(to avoid implying that it’s a DBI generic). -
Internal
sqlite*()functions are no longer exported (#20).safe.write()is no longer exported.
It also includes a few minor improvements and bug fixes. The most important are:
-
Inlined
RSQLite.extfuns- useinitExtension()to load the many useful extension functions. -
Methods no longer automatically clone the connection is there is an open result set. This was implemented inconsistently in a handful of places. RSQLite is now more forgiving if you forget to close a result set - it will close it for you, with a warning. It’s still good practice to clean up after yourself with
dbClearResults(), but you don’t have to. -
dbBegin(),dbCommit()anddbRollback()throw errors on failure, rather than returningFALSE. They all gain anameargument to specify named savepoints. -
dbWriteTable()has been rewritten. It uses a better quoting strategy, throws errors on failure, and only automatically adds row names only if they’re strings. (NB:dbWriteTable()also has a method that allows you load files directly from disk.)
For a complete list of changes, please see the full release notes .

