R/htmlTable_helpers_skipRownames.R

Defines functions prSkipRownames

Documented in prSkipRownames

#' Returns if rownames should be printed for the htmlTable
#'
#' @inheritParams htmlTable
#' @keywords internal
prSkipRownames <- function(rnames) {
  if (missing(rnames) || is.null(rnames) || length(rnames) == 0) {
    return(TRUE)
  }

  if (length(rnames) == 1 && rnames == FALSE) {
    return(TRUE)
  }

  return(FALSE)
}
gforge/htmlTable documentation built on Nov. 4, 2023, 12:05 a.m.