R/speclib_usagehistory.R

usagehistory <- function (x)
  return(x@usagehistory)

"usagehistory<-" <- function(x, value)
{
  xx <- x
  if (is.null(value))
  {
    xx@usagehistory <- character()
  } else {
    xx@usagehistory <- if (is.null(xx@usagehistory)) value else c(xx@usagehistory, value)
  }
  x <- xx
}

Try the hsdar package in your browser

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

hsdar documentation built on March 18, 2022, 6:35 p.m.