R/with_comment.R

#' Set the comment attribute on an object. Suitable for chaining.
#'
#' @param x any \R object
#' @param value a \code{character} vector, or \code{NULL}.
#'
#' @export
with_comment <- function (x, ...) {
  comment(x) <- str_c(...)
  return(x)
}
BAAQMD/tbltools documentation built on Feb. 29, 2024, 5:45 a.m.