1\name{HTM2clip}
2\alias{HTML2clip}
3
4\title{Wrapper around HTML() to save output to the clipboard}
5\description{
6     Calls HTML() with appropriate filename and append attributes to write output to clipboard (currently
7     only works on Windows).
8}
9\usage{
10	HTML2clip(x,
11	          filename =file("clipboard",
12	              ifelse(.Platform$OS == "windows", "w",
13	                     stop("Writing to clipboard only supported on Windows"))),
14	          append = FALSE, ...)
15}
16
17\arguments{
18  \item{x}{ object to be output to HTML }
19  \item{filename}{ destination output file, defaults to clipboard }
20  \item{append}{ logical. If 'TRUE' output will be appended to 'file';
21		 otherwise, it will overwrite the contents of 'file'decides if the filevalue of the width HR optional argument, in pixel or percent}
22  \item{\dots}{ ... (passed on to HTML())}
23}
24
25\value{
26	no value returned.
27}
28
29\author{ Eric Lecoutre}
30
31\note{ This function was contributed by Gabor Grothendieck.}
32
33
34
35\seealso{  \code{\link{HTML}}}
36
37\examples{
38if (.Platform$OS == "windows")
39	HTML2clip(summary(lm(rating ~., attitude)))
40}
41\keyword{ print }
42\keyword{ IO }
43\keyword{ file }
44