File: HTML2clip.Rd

package info (click to toggle)
r-cran-r2html 2.3.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 976 kB
  • sloc: javascript: 832; xml: 56; makefile: 12; sh: 8
file content (43 lines) | stat: -rwxr-xr-x 1,150 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
\name{HTM2clip}
\alias{HTML2clip}

\title{Wrapper around HTML() to save output to the clipboard}
\description{
     Calls HTML() with appropriate filename and append attributes to write output to clipboard (currently 
     only works on Windows). 
}
\usage{
	HTML2clip(x,
	          filename =file("clipboard",
	              ifelse(.Platform$OS == "windows", "w",
	                     stop("Writing to clipboard only supported on Windows"))),
	          append = FALSE, ...) 
}

\arguments{
  \item{x}{ object to be output to HTML }
  \item{filename}{ destination output file, defaults to clipboard }
  \item{append}{ logical. If 'TRUE' output will be appended to 'file'; 
		 otherwise, it will overwrite the contents of 'file'decides if the filevalue of the width HR optional argument, in pixel or percent}  
  \item{\dots}{ ... (passed on to HTML())}
}

\value{
	no value returned.
}

\author{ Eric Lecoutre}

\note{ This function was contributed by Gabor Grothendieck.}

 

\seealso{  \code{\link{HTML}}}

\examples{
if (.Platform$OS == "windows")
	HTML2clip(summary(lm(rating ~., attitude)))
}
\keyword{ print }
\keyword{ IO }
\keyword{ file }