disconnectBioassayDB: Disconnect the database file from a 'BioassayDB' object

disconnectBioassayDBR Documentation

Disconnect the database file from a BioassayDB object

Description

This function disconnects the underlying sqlite database from a BioassayDB object. This is a critical step for writeable databases, but can be omitted for read only databases.

Usage

disconnectBioassayDB(database)

Arguments

database

A codeBioassayDB object to be disconnected.

Author(s)

Tyler Backman

Examples

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

## disconnect from database
mydb <- connectBioassayDB(filename)

## delete database file
unlink(filename)

TylerBackman/bioassayR documentation built on Oct. 26, 2024, 7:09 p.m.