The R Project SVN R

Rev

Rev 59039 | Rev 67599 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61160
Line 26... Line 26...
26
  An attempt is made to write output as far as possible to \code{file}
26
  An attempt is made to write output as far as possible to \code{file}
27
  if there is an error in evaluating the expressions, but for
27
  if there is an error in evaluating the expressions, but for
28
  \code{file = NULL} all output will be lost.
28
  \code{file = NULL} all output will be lost.
29
}
29
}
30
\value{
30
\value{
31
  A character string (if \code{file=NULL}), or invisible \code{NULL}.
31
  A character string (if \code{file = NULL}), or invisible \code{NULL}.
32
}
32
}
33
 
33
 
34
\seealso{ \code{\link{sink}}, \code{\link{textConnection}} }
34
\seealso{ \code{\link{sink}}, \code{\link{textConnection}} }
35
 
35
 
36
\examples{
36
\examples{
Line 40... Line 40...
40
capture.output(1+1, 2+2)
40
capture.output(1+1, 2+2)
41
capture.output({1+1; 2+2})
41
capture.output({1+1; 2+2})
42
\dontrun{
42
\dontrun{
43
## on Unix with enscript available
43
## on Unix with enscript available
44
ps <- pipe("enscript -o tempout.ps","w")
44
ps <- pipe("enscript -o tempout.ps","w")
45
capture.output(example(glm), file=ps)
45
capture.output(example(glm), file = ps)
46
close(ps)
46
close(ps)
47
}
47
}
48
}
48
}
49
\keyword{utilities}
49
\keyword{utilities}