Learn R Programming

rEHR (version 1.0)

database: Wrapper for dbConnect

Description

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

Usage

database(dbname)

Arguments

dbname
character name path to database file

Value

SQLiteConnection object

Details

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

Examples

Run this code
## Not run: 
# db <- database("mydb")
# ## End(Not run)

Run the code above in your browser using DataLab