newBioassayDB: Create a new bioassayR database

View source: R/loadingData.R

newBioassayDBR Documentation

Create a new bioassayR database

Description

This function creates a new bioassayR database at the specified filesystem location, and returns a BioassayDB object connected to the new database.

Usage

newBioassayDB(databasePath, writeable = TRUE, indexed = FALSE)

Arguments

databasePath

Full path to the database file to be created.

writeable

logical. Should the database allow data to be modified and written to?

indexed

logical. Should a performance enhancing index be created? The default is false, as typically an index is added only after initial data is loaded. Data loading is much slower into an already indexed database.

Author(s)

Tyler Backman

Examples

## get a temporary filename
library(bioassayR)
filename <- tempfile()

## create a new bioassayR database
mydb <- newBioassayDB(filename, indexed=FALSE)

## close and delete database
disconnectBioassayDB(mydb)
unlink(filename)

girke-lab/bioassayR documentation built on April 28, 2022, 7:34 a.m.