R/on_off.R

Defines functions on_off

Documented in on_off

#'
#'  On or off?
#'
#' @param b A boolean value
#' @return Returns "on" if b is a single, defined boolean value that is TRUE;
#'    "off" otherwise
#' @export
#'
on_off = function(b) {
  if (base::isTRUE(b)) "on" else "off"
}
pteetor/tutils documentation built on March 29, 2025, 6:38 p.m.