database: Wrapper for dbConnect

Description Usage Arguments Details Value Examples

Description

Connects to a SQLite database or creates one if it does not already exist

Usage

1
database(dbname)

Arguments

dbname

character name path to database file

Details

If the '.sqlite' file extension is ommited from the dbname argument it is automatically added.

Value

SQLiteConnection object

Examples

1
2
3
4
## Not run: 
db <- database("mydb")

## End(Not run)

rEHR documentation built on Jan. 23, 2017, 1 p.m.

Related to database in rEHR...