R/trace_utils.R

Defines functions untraceit

Documented in untraceit

##' Remove traceit information from an object
##'
##' Removes the \code{args} attribute and the \code{"traceit"} class
##' added by \code{\link{traceit}}. The object is modified in place.
##' @param x An object
##' @return x without traceit information (invisibly)
##' @keywords internal
untraceit <- function(x){

  setattr(x,"args",NULL)
  setattr(x,"class",setdiff(class(x),"traceit"))
  invisible(x)

}

Try the tracee package in your browser

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

tracee documentation built on Nov. 24, 2026, 5:07 p.m.