R/log_phase_set.R

Defines functions log_phase_set

Documented in log_phase_set

#' @title Set log phase
#' @export
#' @description Set the current log phase.
#' @return `NULL` (invisibly). Called for its side effects.
#' @param phase Character string with the phase of the log.
#'   Only the first 255 characters are used.
#'   Cannot include the pipe character `"|"`
#'   because it is the delimiter of fields in the log output.
#' @examples
#'   path <- tempfile()
#'   log_phase_get()
#'   log_print(path = path)
#'   log_phase_set("different")
#'   log_phase_get()
#'   log_print(path = path)
#'   log_phase_reset()
#'   log_phase_get()
#'   log_read(path)
log_phase_set <- function(phase) {
  .Call(r_log_phase_set, phase, PACKAGE = "autometric")
  invisible()
}

Try the autometric package in your browser

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

autometric documentation built on April 3, 2025, 11:14 p.m.