R/generics.R

Defines functions value style

Documented in style value

#' @title Style
#'
#' @description
#' Generic style method used for overriding to
#' get style information from various logging objects.
#'
#' @param obj object to extract value from.
#'
#' @return object's value
#' @export
style <- function(obj) {
  UseMethod("style", obj)
}

#' @title Value
#'
#' @description
#' Base method for getting the value of a
#' format object.
#'
#' @param obj object to extract value from.
#' @param ... further arguments passed to or from other methods.
#'
#' @return object's value
#' @export
value <- function(obj, ...) {
  UseMethod("value", obj)
}

Try the dyn.log package in your browser

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

dyn.log documentation built on March 18, 2022, 7:07 p.m.