HTML2clip: Wrapper around HTML() to save output to the clipboard

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/HTMLcore.R

Description

Calls HTML() with appropriate filename and append attributes to write output to clipboard (currently only works on Windows).

Usage

1
2
3
4
5
	HTML2clip(x,
	          filename =file("clipboard",
	              ifelse(.Platform$OS == "windows", "w",
	                     stop("Writing to clipboard only supported on Windows"))),
	          append = FALSE, ...) 

Arguments

x

object to be output to HTML

filename

destination output file, defaults to clipboard

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

...

... (passed on to HTML())

Value

no value returned.

Note

This function was contributed by Gabor Grothendieck.

Author(s)

Eric Lecoutre

See Also

HTML

Examples

1
2
if (.Platform$OS == "windows")
	HTML2clip(summary(lm(rating ~., attitude)))


R2HTML documentation built on May 19, 2017, 10:26 p.m.
Search within the R2HTML package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.