updatePamObject: Update PAMpal S4 Object

Description Usage Arguments Details Value Author(s) Examples

View source: R/updatePamObject.R

Description

Updates older versions of PAMpal's S4 objects to stop "validOjbect" warning messages

Usage

1

Arguments

x

an AcousticStudy, AcousticEvent, or PAMpalSettings object

Details

As of v0.12.0 this updates any previous version's PAMpalSettings objects to have the new "settings" slot, as well as updating any PAMpalSettings objects within an AcousticStudy

Value

the same object as x with any slot changes made

Author(s)

Taiki Sakai taiki.sakai@noaa.gov

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
pps <- new('PAMpalSettings')
# manually breaking this S4 class, don't try this at home
attr(pps, 'settings') <- NULL
# This will now give an error
pps
pps <- updatePamObject(pps)
# Fixed!
pps

## End(Not run)

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