The R Project SVN R

Rev

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

Rev 27625 Rev 27733
Line 22... Line 22...
22
}
22
}
23
 
23
 
24
\seealso{ \code{\link{sink}}, \code{\link{textConnection}} }
24
\seealso{ \code{\link{sink}}, \code{\link{textConnection}} }
25
 
25
 
26
\examples{
26
\examples{
-
 
27
require(stats)
27
glmout<-capture.output(example(glm))
28
glmout <- capture.output(example(glm))
28
glmout[1:5]
29
glmout[1:5]
29
capture.output(1+1,2+2)
30
capture.output(1+1, 2+2)
30
capture.output({1+1;2+2})
31
capture.output({1+1; 2+2})
31
\dontrun{
32
\dontrun{
32
## on Unix with enscript available
33
## on Unix with enscript available
33
ps<-pipe("enscript -o tempout.ps","w")
34
ps <- pipe("enscript -o tempout.ps","w")
34
capture.output(example(glm), file=ps)
35
capture.output(example(glm), file=ps)
35
close(ps)
36
close(ps)
36
}
37
}
37
}
38
}
38
\keyword{utilities}% at least one, from doc/KEYWORDS
39
\keyword{utilities}
39
 
-