This function exports data frames or matrices to HTML, sending output to one or more of the console, viewer, and one or more files.
exportToHTML( input, output = ufs::opts$get("tableOutput"), tableOutputCSS = ufs::opts$get("tableOutputCSS") )
input | Either a |
---|---|
output | The output: a character vector with one or more
of " |
tableOutputCSS | The CSS to use for the HTML table. |
Invisibly, the (potentially concatenated) input
as character
vector.
exportToHTML(mtcars[1:5, 1:5]); #> mpg cyl disp hp drat #> Mazda RX4 21.0 6 160 110 3.90 #> Mazda RX4 Wag 21.0 6 160 110 3.90 #> Datsun 710 22.8 4 108 93 3.85 #> Hornet 4 Drive 21.4 6 258 110 3.08 #> Hornet Sportabout 18.7 8 360 175 3.15