R/log_phase_reset.R

Defines functions log_phase_reset

Documented in log_phase_reset

#' @title Reset log phase
#' @export
#' @description Reset the current log phase to the default value.
#' @return `NULL` (invisibly). Called for its side effects.
#' @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_reset <- function() {
  .Call(r_log_phase_reset, 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.