View source: R/updatePamObject.R
updatePamObject | R Documentation |
Updates older versions of PAMpal's S4 objects to stop "validOjbect" warning messages
updatePamObject(x)
x |
an AcousticStudy, AcousticEvent, or PAMpalSettings object |
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
the same object as x
with any slot changes made
Taiki Sakai taiki.sakai@noaa.gov
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.