disconnectBioassayDB {bioassayR} | R 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)

[Package bioassayR version 1.30.0 Index]