database: Wrapper for dbConnect

View source: R/cprd_import.R

databaseR Documentation

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

Details

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

Value

SQLiteConnection object

Examples

## Not run: 
db <- database("mydb")

## End(Not run)

rOpenHealth/rEHR documentation built on Sept. 25, 2024, 5:32 p.m.