removeDatabase: Remove a Database from a PAMpalSettings Object

Description Usage Arguments Value Author(s) Examples

View source: R/removeDatabase.R

Description

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

Usage

1

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

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

PAMpal documentation built on Oct. 10, 2021, 1:06 a.m.