Usage
html(object, ...)
"html"(object, file, where=c('cwd', 'tmp'), method=c('hevea', 'htlatex'), rmarkdown=FALSE, cleanup=TRUE, ...)
"html"(object, file=paste(first.word(deparse(substitute(object))),'html',sep='.'), append=FALSE, link=NULL, linkCol=1, linkType=c('href','name'), ...)
"html"(object, file=paste(first.word(deparse(substitute(object))),'html',sep='.'), append=FALSE, link=NULL, linkCol=1, linkType=c('href','name'), ...)
"print"(x, ...)
"show"(object)
Arguments
object
a data frame or an object created by latex
. For
show
is an object created by html
. For the generic
html
is any object for which an html
method exists.
file
name of the file to create. The default file
name is object.html
where object
is the first word in
the name of the argument for object
. For html.latex
specify file=''
or file=character(0)
to print html code to
the console, as when using knitr
.
where
for html
. Default is to put output files in current
working directory. Specify where='tmp'
to put in a system
temporary directory area.
method
default is to use system command hevea
to convert
from LaTeX to html. Specifymethod='htlatex'
to use system
command htlatex
, assuming the
system package TeX4ht
is installed.
rmarkdown
set to TRUE
if using RMarkdown (usually under
knitr
and RStudio). This causes html to be packaged for
RMarkdown and output to go into the console stream. file
is
ignored when rmarkdown=TRUE
.
cleanup
if using method='htlatex'
set to FALSE
if
where='cwd'
to prevent deletion of auxiliary files created by
htlatex
that are not needed when using the final html
document (only the .css
file is needed in addition to
.html
). If using method='hevea'
, cleanup=TRUE
causes deletion of the generated .haux
file.
append
set to TRUE
to append to an existing file
link
character vector specifying hyperlink names to attach to
selected elements of the matrix or data frame. No hyperlinks are used
if link
is omitted or for elements of link
that are
""
. To allow multiple links per link, link
may also be
a character matrix shaped as object
in which case
linkCol
is ignored.
linkCol
column number of object
to which hyperlinks are
attached. Defaults to first column.
linkType
defaults to "href"
x
an object created by html