addDatabase: Add a Database to a PAMpalSettings Object

View source: R/addDatabase.R

addDatabaseR Documentation

Add a Database to a PAMpalSettings Object

Description

Adds a new function to the "function" slot in a PAMpalSettings object. Interactively asks for database files if none are supplied as input

Usage

addDatabase(pps, db = NULL, verbose = TRUE)

Arguments

pps

a PAMpalSettings object to add a database to

db

database(s) to add, or single directory containing databases

verbose

logical flag to show messages

Value

the same PAMpalSettings object as pps, with the database db added to the "db" slot

Author(s)

Taiki Sakai taiki.sakai@noaa.gov

Examples


# not recommended to create a pps like this, for example only
pps <- new('PAMpalSettings')
db <- system.file('extdata', 'Example.sqlite3', package='PAMpal')
pps <- addDatabase(pps, db)
pps


PAMpal documentation built on Aug. 12, 2023, 1:06 a.m.