1% Generated by roxygen2: do not edit by hand 2% Please edit documentation in R/capture.output.R 3\name{capture.output} 4\alias{capture.output} 5\title{Backport of capture.output for R < 3.3.0} 6\usage{ 7capture.output( 8 ..., 9 file = NULL, 10 append = FALSE, 11 type = c("output", "message"), 12 split = FALSE 13) 14} 15\description{ 16Argument \code{type} has been backported. 17See the original description in \code{utils::capture.output}. 18} 19\examples{ 20# get function from namespace instead of possibly getting 21# implementation shipped with recent R versions: 22bp_capture.output <- getFromNamespace("capture.output", "backports") 23 24captured <- bp_capture.output({ message("hi") }, type = "message") 25str(captured) 26} 27\keyword{internal} 28