R/browser_tap.R

Defines functions browser_tap

Documented in browser_tap

#' Call \code{browser} with \code{thing} set to the \code{tap}'d object so
#' it can be inspected
#'
#' @param thing The object to inspect during a call to \code{browser}
#' @return The object passed in to allow for method chaining
#' @export
browser_tap <- function(thing) {
  tap(thing, function(thing) { browser() })
}
aguynamedryan/helpRs documentation built on Dec. 18, 2021, 11:23 p.m.