R/trace.R

Defines functions build_trace wants_trace verbose_enabled

#' @keywords internal
#' @noRd
verbose_enabled <- function(verbose) !isFALSE(verbose)

#' @keywords internal
#' @noRd
wants_trace <- function(verbose) identical(verbose, "trace")

# Assemble the accumulated trace rows into a data frame (or NULL if unused).
#' @keywords internal
#' @noRd
build_trace <- function(rows) {
  if (length(rows) == 0L) {
    return(NULL)
  }
  do.call(rbind, lapply(rows, as.data.frame, stringsAsFactors = FALSE))
}

Try the minex package in your browser

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

minex documentation built on Aug. 30, 2026, 1:07 a.m.