removeDatabase {PAMpal}R Documentation

Remove a Database from a PAMpalSettings Object

Description

Remove a database from the "db" slot in a PAMpalSettings object.

Usage

removeDatabase(pps, index = NULL)

Arguments

pps

a PAMpalSettings object to remove a database from

index

index indicating which database(s) to remove. Can be a vector if you want to remove multiple databases. If missing user is prompted to select a database from a list, will only show up to the first 20. You can easily remove all of the databases with a large index like 1:1000

Value

the same PAMpalSettings object as pps, with the database(s) removed from the "db" slot

Author(s)

Taiki Sakai taiki.sakai@noaa.gov

Examples


exPps <- new('PAMpalSettings')
exPps <- addDatabase(exPps, system.file('extdata', 'Example.sqlite3', package='PAMpal'))
removeDatabase(exPps, 1)
if(interactive()) removeDatabase(exPps)


[Package PAMpal version 1.2.1 Index]