R/removeSettings.R

Defines functions removeSettings

Documented in removeSettings

#' @title Remove Settings from a PAMpalSettings Object
#'
#' @description Remove all settings from the "settings" slot in a PAMpalSettings
#'   object.
#'
#' @param pps a \linkS4class{PAMpalSettings} object to remove settings from
#' 
#' @return the same \linkS4class{PAMpalSettings} object as pps, with all
#'   settings removed from the "settings" slot
#'
#' @author Taiki Sakai \email{taiki.sakai@@noaa.gov}
#'
#' @examples
#'
#' exPps <- new('PAMpalSettings')
#' exPps <- addSettings(exPps, system.file('extdata', 'Example.xml', package='PAMpal'))
#' removeSettings(exPps)
#'
#' @export
#'
removeSettings <- function(pps) {
  pps@settings <- list()
  pps
}

Try the PAMpal package in your browser

Any scripts or data that you put into this service are public.

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